Module Name: src Committed By: drochner Date: Tue Sep 15 19:38:16 UTC 2009
Modified Files: src/sys/net: if_tap.c Log Message: fix undefined result of stat(), found by clang static analyzer To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/net/if_tap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_tap.c diff -u src/sys/net/if_tap.c:1.58 src/sys/net/if_tap.c:1.59 --- src/sys/net/if_tap.c:1.58 Thu Jul 23 17:53:17 2009 +++ src/sys/net/if_tap.c Tue Sep 15 19:38:15 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: if_tap.c,v 1.58 2009/07/23 17:53:17 plunky Exp $ */ +/* $NetBSD: if_tap.c,v 1.59 2009/09/15 19:38:15 drochner Exp $ */ /* * Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation. @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.58 2009/07/23 17:53:17 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.59 2009/09/15 19:38:15 drochner Exp $"); #if defined(_KERNEL_OPT) #include "bpfilter.h" @@ -977,7 +977,7 @@ static int tap_fops_stat(file_t *fp, struct stat *st) { - int error; + int error = 0; struct tap_softc *sc; int unit = (uintptr_t)fp->f_data;