From ad7ee4ad6c3a5388acf94dd532d291ea6d3a5972 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 31 Jul 2010 19:43:37 +0000 Subject: 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 --- ui/vnc-enc-tight.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') 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; } -- cgit v1.2.1