]> git.marmaro.de Git - mmh/blobdiff - sbr/crawl_folders.c
Fixed programming mistakes, detected by cppcheck.
[mmh] / sbr / crawl_folders.c
index 0693a2162b376944b20f04daaece627e55e8308c..0185bd8344290966a7d8b63611693adf8e9c9491 100644 (file)
@@ -84,7 +84,8 @@ add_children(char *name, struct crawl_context *crawl)
                        continue;
                }
 #endif
-               if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) {
+               if (strcmp(dp->d_name, ".")==0 ||
+                               strcmp(dp->d_name, "..")==0) {
                        continue;
                }
                child = concat(prefix, dp->d_name, (void *)NULL);