From 01d230cc097d4b77eadc334002d15aa23a95608a Mon Sep 17 00:00:00 2001 From: kraai Date: Fri, 8 Mar 2002 16:25:33 +0000 Subject: list_single: Declare scratch iff CONFIG_FEATURE_LS_USERNAME is defined. git-svn-id: svn://busybox.net/trunk/busybox@4338 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/ls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreutils/ls.c b/coreutils/ls.c index e9c2e8643..f2512fb9c 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -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; -- cgit v1.2.3-55-g6feb