From 2ae5886b3c6bf3cb1b5c0e4eda48afd6826aabea Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 25 Apr 1998 00:12:32 +0000 Subject: Fix nasty error in len_octal, result not initialized --- bin/ls/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ls') diff --git a/bin/ls/util.c b/bin/ls/util.c index 44f9ed2..3cd5659 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94"; #else static const char rcsid[] = - "$Id: util.c,v 1.15 1998/04/24 20:15:43 des Exp $"; + "$Id: util.c,v 1.16 1998/04/25 00:10:24 ache Exp $"; #endif #endif /* not lint */ @@ -87,7 +87,7 @@ len_octal(s, len) char *s; int len; { - int r; + int r = 0; while (len--) if (isprint((unsigned char)*s++)) r++; else r += 4; -- cgit v1.1