From d4e02a09258063c6d024c3ccd42d6b22212e6e18 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Mar 2014 19:04:24 -0800 Subject: 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 Reviewed-by: Peter Hutterer Reviewed-by: Daniel Stone --- listing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listing.c b/listing.c index c7f5ef8..945f7f6 100644 --- a/listing.c +++ b/listing.c @@ -292,8 +292,8 @@ AddDirectory(char *head, char *ptrn, char *rest, char *map) #else if ((dirp = opendir((head ? head : "."))) == NULL) return 0; - nMatch = 0; #endif + nMatch = 0; #ifdef WIN32 do #else -- cgit v1.2.1