scanner.c

changeset 16
bc9a0fefd892
parent 14
ee9333c91dda
child 18
cae1294702aa
     1.1 --- a/scanner.c	Mon Sep 19 08:11:08 2011 +0200
     1.2 +++ b/scanner.c	Tue Sep 20 15:19:28 2011 +0200
     1.3 @@ -44,10 +44,6 @@
     1.4  
     1.5        // Count lines
     1.6        lines = 0;
     1.7 -      /* char filename[(1+strlen(currdir)+strlen(entry->d_name))];
     1.8 -      strcpy(filename, currdir);
     1.9 -      strncat(filename, &settings->fileSeparator, 1);
    1.10 -      strcat(filename, entry->d_name); */
    1.11        if (testSuffix(filename, settings)) {
    1.12          FILE *file = fopen(filename, "r");
    1.13          if (file == NULL) {
    1.14 @@ -72,8 +68,7 @@
    1.15          #endif /* _WIN32 */
    1.16  
    1.17          lineSum += lines;
    1.18 -      }
    1.19 -      else {
    1.20 +      } else {
    1.21          if (!settings->matchesOnly) {
    1.22            // Print hint
    1.23            #ifdef _WIN32

mercurial