gst/librfb/rfbdecoder.c: Fix uninitialized warnings

Original commit message from CVS:
* gst/librfb/rfbdecoder.c:
Fix uninitialized warnings
This commit is contained in:
Thijs Vermeir 2008-11-12 10:32:24 +00:00
parent e05d00f63b
commit d8852e5788
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-11-12 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/librfb/rfbdecoder.c:
Fix uninitialized warnings
2008-11-11 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> 2008-11-11 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* tests/check/Makefile.am: * tests/check/Makefile.am:

View file

@ -784,6 +784,7 @@ rfb_decoder_hextile_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
guint8 subencoding, nr_subrect, xy, wh; guint8 subencoding, nr_subrect, xy, wh;
guint32 background, foreground; guint32 background, foreground;
foreground = background = 0;
x_end = rect_w % 16; x_end = rect_w % 16;
x_count = rect_w / 16 + (x_end > 0 ? 1 : 0); x_count = rect_w / 16 + (x_end > 0 ? 1 : 0);
y_end = rect_h % 16; y_end = rect_h % 16;