Commit 73f2d66e authored by Peter Hutterer's avatar Peter Hutterer Committed by Ulrich Sibiller

Fix three "use of uninitialized variable" coverity warnings

False positive, if rlen/nbytes are unset we quit early before using it. Still, initialize it so we don't have to deal with these warnings again. Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> Reviewed-by: 's avatarHans de Goede <hdegoede@redhat.com> Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent e1448998
......@@ -47,7 +47,7 @@ int *actualCount) /* RETURN */
int count = 0;
xListFontsReply rep;
register xListFontsReq *req;
unsigned long rlen;
unsigned long rlen = 0;
LockDisplay(dpy);
GetReq(ListFonts, req);
......
......@@ -35,7 +35,7 @@ char **XGetFontPath(
int *npaths) /* RETURN */
{
xGetFontPathReply rep;
unsigned long nbytes;
unsigned long nbytes = 0;
char **flist = NULL;
char *ch = NULL;
char *chend;
......
......@@ -42,7 +42,7 @@ char **XListExtensions(
register unsigned i;
register int length;
register xReq *req;
unsigned long rlen;
unsigned long rlen = 0;
LockDisplay(dpy);
GetEmptyReq (ListExtensions, req);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment