summaryrefslogtreecommitdiff
path: root/vncEncodeRRE.c
diff options
context:
space:
mode:
authorStefan Schallenberg <infos@nafets.de>2013-09-11 22:22:07 +0200
committerStefan Schallenberg <infos@nafets.de>2013-09-11 22:22:07 +0200
commit02d155ebe1a7d27aea3a4c1d99d2f9bf91b619a6 (patch)
tree939c3e0a9e30cecb13977477c1f69e0e9bb59875 /vncEncodeRRE.c
parent0b8bf3d58c09daa4ef7ec5bc9e02efad001af097 (diff)
downloadvdr-plugin-ffnetdev-master.tar.gz
vdr-plugin-ffnetdev-master.tar.bz2
Compiler warnings eliminatedHEADmaster
Diffstat (limited to 'vncEncodeRRE.c')
-rw-r--r--vncEncodeRRE.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncEncodeRRE.c b/vncEncodeRRE.c
index e479939..883ef0f 100644
--- a/vncEncodeRRE.c
+++ b/vncEncodeRRE.c
@@ -119,7 +119,7 @@ subrectEncode##bpp( \
rfbRectangle subrect; \
int x,y; \
int i,j; \
- int hx,hy,vx,vy; \
+ int hx=0,hy,vx=0,vy; \
int hyflag; \
CARD##bpp *seg; \
CARD##bpp *line; \
@@ -145,7 +145,7 @@ subrectEncode##bpp( \
seg = data+(j*w); \
if (seg[x] != cl) {break;} \
i = x; \
- while ((i < w) && (seg[i] == cl)) i += 1; \
+ while ((seg[i] == cl) && (i < w)) i += 1; \
i -= 1; \
if (j == y) vx = hx = i; \
if (i < vx) vx = i; \