aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xkb
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-21 11:13:46 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-22 11:30:54 +0200
commit31c3d27ea3d2546beb267ed3cc083e040908e246 (patch)
treed84f6428988e9630967c02c1341bc772989dd9e9 /nx-X11/programs/Xserver/xkb
parent813acdd2df24a8e3f44152d90a26f1beef11b38c (diff)
downloadnx-libs-31c3d27ea3d2546beb267ed3cc083e040908e246.tar.gz
nx-libs-31c3d27ea3d2546beb267ed3cc083e040908e246.tar.bz2
nx-libs-31c3d27ea3d2546beb267ed3cc083e040908e246.zip
xkmread.c: fix compiler warning
xkmread.c: In function ‘XkmReadFileSectionName’: xkmread.c:1181:25: warning: ‘tmpTOC.type’ may be used uninitialized in this function [-Wmaybe-uninitialized] XkbConfigText(tmpTOC.type,XkbMessage),0);
Diffstat (limited to 'nx-X11/programs/Xserver/xkb')
-rw-r--r--nx-X11/programs/Xserver/xkb/xkmread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/xkb/xkmread.c b/nx-X11/programs/Xserver/xkb/xkmread.c
index c8b2a4591..b24c43e03 100644
--- a/nx-X11/programs/Xserver/xkb/xkmread.c
+++ b/nx-X11/programs/Xserver/xkb/xkmread.c
@@ -1177,8 +1177,12 @@ char name[100];
return Xstrdup(name);
break;
default:
+ /* tmpTOC is unitilaoized here, so we use the one from toc for now.
_XkbLibError(_XkbErrBadImplementation,
XkbConfigText(tmpTOC.type,XkbMessage),0);
+ */
+ _XkbLibError(_XkbErrBadImplementation,
+ XkbConfigText(toc->type,XkbMessage),0);
break;
}
return NULL;