Initialize fd to -1 so that gcc doesn't emit an unitialized warning.
This commit is contained in:
parent
af71f40a98
commit
64c7af10a7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user