summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-04-25 00:12:32 +0000
committerache <ache@FreeBSD.org>1998-04-25 00:12:32 +0000
commit2ae5886b3c6bf3cb1b5c0e4eda48afd6826aabea (patch)
tree60e7553c48a467fa5149ad04792b9de66a4f4ec5 /bin
parent3a5f07c2c9aa2bfcbd4c58578d964d733f7099a2 (diff)
downloadFreeBSD-src-2ae5886b3c6bf3cb1b5c0e4eda48afd6826aabea.zip
FreeBSD-src-2ae5886b3c6bf3cb1b5c0e4eda48afd6826aabea.tar.gz
Fix nasty error in len_octal, result not initialized
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/util.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud