aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-03-04 01:12:24 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-10 19:44:22 +0100
commitee2a933c3d4ad65849443cc917c59ad479083ca8 (patch)
treee69e6342ece32a992ae29376697b4ecc691266de
parente021bc231fae81137226a74d16f13b8168fe670d (diff)
downloadnx-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);
-rw-r--r--nx-X11/programs/Xserver/Xext/xf86bigfont.c2
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