staticify variable.
authorDavid Given <dg@cowlark.com>
Sat, 17 Oct 2015 22:09:16 +0000 (00:09 +0200)
committerDavid Given <dg@cowlark.com>
Sat, 17 Oct 2015 22:09:16 +0000 (00:09 +0200)
Applications/util/du.c

index 0cf8855..b19ef85 100644 (file)
@@ -131,7 +131,7 @@ long dodir(char *d, int thislev, dev_t dev)
     long total;
     DIR  *dp;
     struct dirent *entry;
-    char dent[LINELEN];
+    static char dent[LINELEN];
 
     if (lstat(d, &s) < 0) {
        fprintf(stderr, "%s: %s: %s\n", prog, d, strerror(errno));