From 2824899d280f2b169b3e745b222f9a981c1ce5f7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Aug 2013 18:27:28 -0700 Subject: Rearrange some variable declarations & initializations in XKB Little things noticed during XKB restyling that seemed to make the code easier to read. Signed-off-by: Alan Coopersmith Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/XKBList.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nx-X11/lib/X11/XKBList.c') diff --git a/nx-X11/lib/X11/XKBList.c b/nx-X11/lib/X11/XKBList.c index d8086a305..d3d29e2a6 100644 --- a/nx-X11/lib/X11/XKBList.c +++ b/nx-X11/lib/X11/XKBList.c @@ -193,9 +193,8 @@ XkbListComponents(Display *dpy, return list; } if (_XkbInitReadBuffer(dpy, &buf, extraLen)) { - Status status; + Status status = Success; - status = Success; list = _XkbTypedCalloc(1, XkbComponentListRec); if (!list) { _XkbFreeReadBuffer(&buf); -- cgit v1.2.3