aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2021-01-16 11:58:23 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2021-01-16 11:58:23 +0000
commitde57c3d8825896ee6dfbb4934095459f6836bf65 (patch)
treefec5472f97b7c406bbd0eca6aefcda70764d4f1b /bin
parent6e8062c855d19d1cbbd65b6843449f22791c3a0a (diff)
downloadsrc-de57c3d8825896ee6dfbb4934095459f6836bf65.tar.gz
src-de57c3d8825896ee6dfbb4934095459f6836bf65.zip
cat: style nits
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/cat.c4
1 files 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);