Commit d4e02a09 authored by Alan Coopersmith's avatar Alan Coopersmith

Initialize nMatch even if WIN32 is defined

Flagged by cppcheck 1.64:
Checking app/xkbcomp/listing.c: WIN32...
[app/xkbcomp/listing.c:335]: (error) Uninitialized variable: nMatch
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent 7606a46b
......@@ -292,8 +292,8 @@ AddDirectory(char *head, char *ptrn, char *rest, char *map)
if ((dirp = opendir((head ? head : "."))) == NULL)
return 0;
nMatch = 0;
nMatch = 0;
#ifdef WIN32
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