Wed, 22 May 2013 10:57:17 +0200
fixed bug: line sum of subdirectories were not added to total sum
src/scanner.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/scanner.c Wed May 22 10:26:22 2013 +0200 1.2 +++ b/src/scanner.c Wed May 22 10:57:17 2013 +0200 1.3 @@ -132,8 +132,8 @@ 1.4 printf("%*s\n", filelist->displayname_len+scanner.spaces, 1.5 filelist->displayname); 1.6 if (settings->recursive && S_ISDIR(filelist->st_mode)) { 1.7 - scanDirectory((scanner_t) {filelist->filename, scanner.spaces+1}, 1.8 - settings); 1.9 + lineSum += scanDirectory( 1.10 + (scanner_t) {filelist->filename, scanner.spaces+1}, settings); 1.11 } 1.12 } else { 1.13 if ((settings->includeSuffixes->count == 0