diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-04-25 00:12:32 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-04-25 00:12:32 +0000 |
commit | d9a1c82ad1e84ea9ce872dab1a2b08579c1dcda9 (patch) | |
tree | 693f31d6faa6d3ce58bf21c80ff169800f47ea87 /bin/ls/util.c | |
parent | 70183462ad619336eee5e0f7888b47a18a385210 (diff) | |
download | src-d9a1c82ad1e84ea9ce872dab1a2b08579c1dcda9.tar.gz src-d9a1c82ad1e84ea9ce872dab1a2b08579c1dcda9.zip |
Fix nasty error in len_octal, result not initialized
Notes
Notes:
svn path=/head/; revision=35441
Diffstat (limited to 'bin/ls/util.c')
-rw-r--r-- | bin/ls/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index 44f9ed26bf6c..3cd5659d3043 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; |