tmpfile: Fix C++ test error on mingw.
[pspp] / lib / exclude.c
index d4dcd76bd9f193e1494be31ab73d0ade35b53949..34b563671116c24585e538acf0c7255a59eb8368 100644 (file)
@@ -342,7 +342,7 @@ excluded_file_pattern_p (struct exclude_segment const *seg, char const *f)
     {
       char const *pattern = exclude[i].pattern;
       int options = exclude[i].options;
-      if (excluded != exclude_fnmatch (pattern, f, options))
+      if (exclude_fnmatch (pattern, f, options))
         return !excluded;
     }
   return excluded;