diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-05-19 12:30:22 +1000 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:29 +0200 |
commit | 73f2d66e0ec90ac5140e5015ca511f914016786e (patch) | |
tree | 539b65d1e4ef02499e94ca1912d4f610f73eeadd /nx-X11/lib/X11/FontNames.c | |
parent | e14489988338c648897b23197efaceffbfaa20d2 (diff) | |
download | nx-libs-73f2d66e0ec90ac5140e5015ca511f914016786e.tar.gz nx-libs-73f2d66e0ec90ac5140e5015ca511f914016786e.tar.bz2 nx-libs-73f2d66e0ec90ac5140e5015ca511f914016786e.zip |
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: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/FontNames.c')
-rw-r--r-- | nx-X11/lib/X11/FontNames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/FontNames.c b/nx-X11/lib/X11/FontNames.c index 6fc6b1272..21dcafea1 100644 --- a/nx-X11/lib/X11/FontNames.c +++ b/nx-X11/lib/X11/FontNames.c @@ -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); |