git: de57c3d88258 - main - cat: style nits
Mariusz Zaborski
oshogbo at FreeBSD.org
Sat Jan 16 11:58:25 UTC 2021
The branch main has been updated by oshogbo:
URL: https://cgit.FreeBSD.org/src/commit/?id=de57c3d8825896ee6dfbb4934095459f6836bf65
commit de57c3d8825896ee6dfbb4934095459f6836bf65
Author: Mariusz Zaborski <oshogbo at FreeBSD.org>
AuthorDate: 2021-01-16 11:58:23 +0000
Commit: Mariusz Zaborski <oshogbo at FreeBSD.org>
CommitDate: 2021-01-16 11:58:23 +0000
cat: style nits
---
bin/cat/cat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 8ba6f6261ad4..764c97c7ad43 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -428,8 +428,7 @@ udom_open(const char *path, int flags)
{
struct addrinfo hints, *res, *res0;
char rpath[PATH_MAX];
- int fd = -1;
- int error, serrno;
+ int fd, error, serrno;
cap_rights_t rights;
/*
@@ -437,6 +436,7 @@ udom_open(const char *path, int flags)
*/
bzero(&hints, sizeof(hints));
hints.ai_family = AF_LOCAL;
+ fd = -1;
if (fileargs_realpath(fa, path, rpath) == NULL)
return (-1);
More information about the dev-commits-src-main
mailing list