diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-03-04 01:12:24 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-03-10 19:44:22 +0100 |
commit | ee2a933c3d4ad65849443cc917c59ad479083ca8 (patch) | |
tree | e69e6342ece32a992ae29376697b4ecc691266de /nx-X11/programs | |
parent | e021bc231fae81137226a74d16f13b8168fe670d (diff) | |
download | nx-libs-ee2a933c3d4ad65849443cc917c59ad479083ca8.tar.gz nx-libs-ee2a933c3d4ad65849443cc917c59ad479083ca8.tar.bz2 nx-libs-ee2a933c3d4ad65849443cc917c59ad479083ca8.zip |
Xext: fix compiler warning
xf86bigfont.c: In function ‘ProcXF86BigfontQueryFont’:
xf86bigfont.c:724:9: warning: ‘pDesc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (!pDesc) free(pCI);
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/Xext/xf86bigfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/Xext/xf86bigfont.c b/nx-X11/programs/Xserver/Xext/xf86bigfont.c index 64b65900e..0ad411fc3 100644 --- a/nx-X11/programs/Xserver/Xext/xf86bigfont.c +++ b/nx-X11/programs/Xserver/Xext/xf86bigfont.c @@ -418,7 +418,7 @@ ProcXF86BigfontQueryFont( int nCharInfos; int shmid; #ifdef HAS_SHM - ShmDescPtr pDesc; + ShmDescPtr pDesc = NULL; #else #define pDesc 0 #endif |