aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-07-31 19:43:37 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-07-31 19:43:37 +0000
commitad7ee4ad6c3a5388acf94dd532d291ea6d3a5972 (patch)
treec1e9c84d7fcfe81887c55d5c5405365de405caaa /ui
parentaee474ebc62686ae8827747b0b1aed85b8122979 (diff)
Initialize a variable in all cases
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc-enc-tight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index 6f046f86c5..c4c9c3bcc8 100644
--- 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;
}