Coverity CID 2466 - Fix a GCC uninitialised variable warning in a way

that (hopefully!) keeps coverity happy too.
This commit is contained in:
simonb 2006-03-18 07:27:50 +00:00
parent bb7bab2df4
commit 6c79cda5ae
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_prop.c,v 1.15 2005/12/11 12:24:30 christos Exp $ */
/* $NetBSD: subr_prop.c,v 1.16 2006/03/18 07:27:50 simonb Exp $ */
/*
* Copyright (c) 2001 Eduardo Horvath.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_prop.c,v 1.15 2005/12/11 12:24:30 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_prop.c,v 1.16 2006/03/18 07:27:50 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -597,7 +597,7 @@ prop_copy(propdb_t db, opaque_t source, opaque_t dest, int wait)
{
int rv;
oprop = prop; /* XXXX -- use vars to make gcc happy. */
oprop = prop = NULL; /* XXXX -- use vars to make gcc happy. */
rv = prop_insert(nobj, srcp->kp_name,
/*XXXUNCONST*/
__UNCONST(srcp->kp_val), srcp->kp_len,