initialize "cp" in hasquota() to avoid gcc/sparc compiler error:

repquota.c:287: warning: `cp' might be used uninitialized in this function
This commit is contained in:
fair 1997-10-23 04:53:03 +00:00
parent 570f447f0e
commit 461f420e35
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
#if 0 #if 0
static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94"; static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94";
#else #else
__RCSID("$NetBSD: repquota.c,v 1.12 1997/10/18 11:23:55 lukem Exp $"); __RCSID("$NetBSD: repquota.c,v 1.13 1997/10/23 04:53:03 fair Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -284,7 +284,7 @@ hasquota(fs, type, qfnamep)
char **qfnamep; char **qfnamep;
{ {
char *opt; char *opt;
char *cp; char *cp = NULL;
static char initname, usrname[100], grpname[100]; static char initname, usrname[100], grpname[100];
static char buf[BUFSIZ]; static char buf[BUFSIZ];