list_single: Declare scratch iff CONFIG_FEATURE_LS_USERNAME is defined.
authorMatt Kraai <kraai@debian.org>
Fri, 8 Mar 2002 16:25:33 +0000 (16:25 -0000)
committerMatt Kraai <kraai@debian.org>
Fri, 8 Mar 2002 16:25:33 +0000 (16:25 -0000)
coreutils/ls.c

index e9c2e8643368a22fc8bc424e1e3e6e0786151045..f2512fb9c0000ffb284f8c06df31060933b71a1b 100644 (file)
@@ -576,7 +576,9 @@ static struct dnode **list_dir(char *path)
 static int list_single(struct dnode *dn)
 {
        int i;
+#ifdef CONFIG_FEATURE_LS_USERNAME
        char scratch[BUFSIZ + 1];
+#endif
 #ifdef CONFIG_FEATURE_LS_TIMESTAMPS
        char *filetime;
        time_t ttime, age;