projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bde7910
)
Fix uninitialized variable in oldstyle negotiation
author
Wouter Verhelst
<w@uter.be>
Mon, 20 Oct 2014 22:00:32 +0000
(
00:00
+0200)
committer
Wouter Verhelst
<w@uter.be>
Mon, 20 Oct 2014 22:00:32 +0000
(
00:00
+0200)
Coverity CID#1248168
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
25066b4
..
5aff488
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-1346,7
+1346,7
@@
CLIENT* negotiate(int net, CLIENT *client, GArray* servers, int phase) {
uint32_t flags = NBD_FLAG_HAS_FLAGS;
uint16_t smallflags = 0;
uint64_t magic;
- uint32_t cflags;
+ uint32_t cflags
= 0
;
memset(zeros, '\0', sizeof(zeros));
assert(((phase & NEG_INIT) && (phase & NEG_MODERN)) || client);