From: Blue Swirl Date: Sat, 31 Jul 2010 19:43:37 +0000 (+0000) Subject: Initialize a variable in all cases X-Git-Tag: v2.7.1~8255 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ad7ee4ad6c3a5388acf94dd532d291ea6d3a5972;p=mirror_qemu.git 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 --- 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; }