projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee474e
)
Initialize a variable in all cases
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 31 Jul 2010 19:43:37 +0000
(19:43 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 31 Jul 2010 19:43:37 +0000
(19:43 +0000)
Commit
d167f9bc06a577d6c85b8ed6991c1efe175aae7d
missed this one:
/src/qemu/ui/vnc-enc-tight.c:1483: warning: 'ret' may be used uninitialized in this function
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
ui/vnc-enc-tight.c
patch
|
blob
|
history
diff --git
a/ui/vnc-enc-tight.c
b/ui/vnc-enc-tight.c
index 6f046f86c536a544cb62d23c5341698974715787..c4c9c3bcc8a6d90576aacdaef19889b56de83d44 100644
(file)
--- a/
ui/vnc-enc-tight.c
+++ b/
ui/vnc-enc-tight.c
@@
-1503,6
+1503,8
@@
static int send_sub_rect_jpeg(VncState *vs, int x, int y, int w, int h,
} else {
ret = send_palette_rect(vs, x, y, w, h, palette);
}
+ } else {
+ ret = 0;
}
return ret;
}