mirror of
https://github.com/xemu-project/xemu.git
synced 2025-05-13 10:36:44 +00:00
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>
This commit is contained in:
parent
aee474ebc6
commit
ad7ee4ad6c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user