Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd Fix uninitialized variable in mlsname()



details:   https://anonhg.NetBSD.org/src/rev/3e63032e44cd
branches:  trunk
changeset: 543414:3e63032e44cd
user:      erh <erh%NetBSD.org@localhost>
date:      Mon Feb 24 19:25:25 2003 +0000

description:
Fix uninitialized variable in mlsname()

diffstat:

 libexec/ftpd/cmds.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dd5fd92f67ad -r 3e63032e44cd libexec/ftpd/cmds.c
--- a/libexec/ftpd/cmds.c       Mon Feb 24 19:09:02 2003 +0000
+++ b/libexec/ftpd/cmds.c       Mon Feb 24 19:25:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmds.c,v 1.20 2003/01/08 18:07:31 manu Exp $   */
+/*     $NetBSD: cmds.c,v 1.21 2003/02/24 19:25:25 erh Exp $    */
 
 /*
  * Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: cmds.c,v 1.20 2003/01/08 18:07:31 manu Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.21 2003/02/24 19:25:25 erh Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -812,7 +812,7 @@
 mlsname(FILE *fp, factelem *fe)
 {
        char realfile[MAXPATHLEN];
-       int i, userf;
+       int i, userf = 0;
 
        for (i = 0; i < FACTTABSIZE; i++) {
                if (facttab[i].enabled)



Home | Main Index | Thread Index | Old Index