From f23cf79ee0e26fc8d5dac2048f62f35c5b9a6bf4 Mon Sep 17 00:00:00 2001 From: fair Date: Wed, 22 Oct 1997 18:43:16 +0000 Subject: [PATCH] Initialize "cp" to make gcc/sparc error go away: quotaon.c:222: warning: `cp' might be used uninitialized in this function --- usr.sbin/quotaon/quotaon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c index c3f644ae240b..49ce20fed142 100644 --- a/usr.sbin/quotaon/quotaon.c +++ b/usr.sbin/quotaon/quotaon.c @@ -1,4 +1,4 @@ -/* $NetBSD: quotaon.c,v 1.10 1997/10/17 12:40:10 lukem Exp $ */ +/* $NetBSD: quotaon.c,v 1.11 1997/10/22 18:43:16 fair Exp $ */ /* * Copyright (c) 1980, 1990, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\ #if 0 static char sccsid[] = "@(#)quotaon.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: quotaon.c,v 1.10 1997/10/17 12:40:10 lukem Exp $"); +__RCSID("$NetBSD: quotaon.c,v 1.11 1997/10/22 18:43:16 fair Exp $"); #endif #endif /* not lint */ @@ -219,7 +219,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];