mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Initialize fd to -1 so that gcc doesn't emit an unitialized warning.
This commit is contained in:
parent
af71f40a98
commit
64c7af10a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288645
|
@ -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 a new issue