diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-18 11:17:52 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-18 11:18:24 +0200 |
commit | 536d4d48bfc3e915be210988fa7d9f6433d875f2 (patch) | |
tree | e774081b341b10f320a6facbd6a7d0864052d0ae | |
parent | a847f13d7b0c8606471792a50e9c64d1f6bd430c (diff) | |
download | samba-536d4d48bfc3e915be210988fa7d9f6433d875f2.tar.gz samba-536d4d48bfc3e915be210988fa7d9f6433d875f2.tar.bz2 samba-536d4d48bfc3e915be210988fa7d9f6433d875f2.zip |
s3: Fix an uninitialized variable
-rw-r--r-- | source3/lib/util_sock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 3bc60db61e..e9626f31fe 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -442,7 +442,6 @@ NTSTATUS read_fd_with_timeout(int fd, char *buf, ssize_t readret; size_t nread = 0; struct timeval timeout; - int save_errno; /* just checking .... */ if (maxcnt <= 0) @@ -464,7 +463,7 @@ NTSTATUS read_fd_with_timeout(int fd, char *buf, } if (readret == -1) { - return map_nt_error_from_unix(save_errno); + return map_nt_error_from_unix(errno); } nread += readret; } @@ -489,7 +488,7 @@ NTSTATUS read_fd_with_timeout(int fd, char *buf, /* Check if error */ if (selrtn == -1) { - return map_nt_error_from_unix(save_errno); + return map_nt_error_from_unix(errno); } /* Did we timeout ? */ |