git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a847f13
)
s3: Fix an uninitialized variable
author
Volker Lendecke
<vl@samba.org>
Wed, 18 Aug 2010 09:17:52 +0000
(11:17 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 18 Aug 2010 09:18:24 +0000
(11:18 +0200)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 3bc60db61e2227769b3084453e3bb33726c16c8c..e9626f31fe1652c0d117b5a6327aebcf3d4da47a 100644
(file)
--- 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 ? */