Initialize fd to -1 so that gcc doesn't emit an unitialized warning.

This commit is contained in:
Sean Bruno 2015-10-04 01:56:11 +00:00
parent af71f40a98
commit 64c7af10a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288645

View file

@ -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.