Commit 31c3d27e authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

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);
parent 813acdd2
...@@ -1177,8 +1177,12 @@ char name[100]; ...@@ -1177,8 +1177,12 @@ char name[100];
return Xstrdup(name); return Xstrdup(name);
break; break;
default: default:
/* tmpTOC is unitilaoized here, so we use the one from toc for now.
_XkbLibError(_XkbErrBadImplementation, _XkbLibError(_XkbErrBadImplementation,
XkbConfigText(tmpTOC.type,XkbMessage),0); XkbConfigText(tmpTOC.type,XkbMessage),0);
*/
_XkbLibError(_XkbErrBadImplementation,
XkbConfigText(toc->type,XkbMessage),0);
break; break;
} }
return NULL; return NULL;
......
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