From 461f420e359c731f0b3c91f0149c20d72d8422a8 Mon Sep 17 00:00:00 2001 From: fair Date: Thu, 23 Oct 1997 04:53:03 +0000 Subject: [PATCH] initialize "cp" in hasquota() to avoid gcc/sparc compiler error: repquota.c:287: warning: `cp' might be used uninitialized in this function --- usr.sbin/repquota/repquota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index 6b5eb36a0d31..686355f790e5 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\ #if 0 static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94"; #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 /* not lint */ @@ -284,7 +284,7 @@ hasquota(fs, type, qfnamep) char **qfnamep; { char *opt; - char *cp; + char *cp = NULL; static char initname, usrname[100], grpname[100]; static char buf[BUFSIZ];