summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/cat/cat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index e7d3864c94f9..b5f99ee667f7 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -306,7 +306,8 @@ udom_open(const char *path, int flags)
{
struct addrinfo hints, *res, *res0;
char rpath[PATH_MAX];
- int fd, error;
+ int fd = -1;
+ int error;
/*
* Construct the unix domain socket address and attempt to connect.