diff options
-rw-r--r-- | xkbcomp/listing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xkbcomp/listing.c b/xkbcomp/listing.c index a3d4ce486..d62e39b21 100644 --- a/xkbcomp/listing.c +++ b/xkbcomp/listing.c @@ -298,6 +298,7 @@ AddDirectory(char *head, char *ptrn, char *rest, char *map) #ifdef WIN32 if ((dirh = FindFirstFile("*.*", &file)) == INVALID_HANDLE_VALUE) return 0; + nMatch = 0; #else if ((dirp = opendir((head ? head : "."))) == NULL) return 0; |