fixed bug: line sum of subdirectories were not added to total sum

Wed, 22 May 2013 10:57:17 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 22 May 2013 10:57:17 +0200
changeset 43
104e75d18ede
parent 42
0402b9b41b0a
child 44
9574a181ec26

fixed bug: line sum of subdirectories were not added to total sum

src/scanner.c file | annotate | diff | comparison | revisions
--- a/src/scanner.c	Wed May 22 10:26:22 2013 +0200
+++ b/src/scanner.c	Wed May 22 10:57:17 2013 +0200
@@ -132,8 +132,8 @@
       printf("%*s\n", filelist->displayname_len+scanner.spaces,
           filelist->displayname);
       if (settings->recursive && S_ISDIR(filelist->st_mode)) {
-        scanDirectory((scanner_t) {filelist->filename, scanner.spaces+1},
-            settings);
+        lineSum += scanDirectory(
+            (scanner_t) {filelist->filename, scanner.spaces+1}, settings);
       }
     } else {
       if ((settings->includeSuffixes->count == 0

mercurial