Module Name: src Committed By: martin Date: Tue Jan 28 13:08:13 UTC 2014
Modified Files: src/sys/dev/usb: if_run.c Log Message: Quell maybe-uninitialized false positives from gcc 4.8 To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/usb/if_run.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/dev/usb/if_run.c diff -u src/sys/dev/usb/if_run.c:1.9 src/sys/dev/usb/if_run.c:1.10 --- src/sys/dev/usb/if_run.c:1.9 Sat Mar 30 03:17:33 2013 +++ src/sys/dev/usb/if_run.c Tue Jan 28 13:08:13 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $ */ +/* $NetBSD: if_run.c,v 1.10 2014/01/28 13:08:13 martin Exp $ */ /* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */ /*- @@ -23,7 +23,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.10 2014/01/28 13:08:13 martin Exp $"); #include <sys/param.h> #include <sys/sockio.h> @@ -822,8 +822,8 @@ run_load_microcode(struct run_softc *sc) { usb_device_request_t req; const char *fwname; - u_char *ucode; - size_t size; + u_char *ucode = NULL; /* XXX gcc 4.8.3: maybe-uninitialized */ + size_t size = 0; /* XXX gcc 4.8.3: maybe-uninitialized */ uint32_t tmp; int ntries, error;