summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-04-11 14:05:46 +0000
committerchristos <christos@NetBSD.org>2006-04-11 14:05:46 +0000
commita0ceb940b3c7168ad52724d22dc2ab6583478deb (patch)
tree695174f7e7c9dbe144b3ac15105550db53123f19 /sys/dev
parente65b84bc9edf4baa1b9dae954ad22b38a38bc0f9 (diff)
Coverity CID 2862: Don't initialize crc with garbage from the stack. For
now set it to 0.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/utoppy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/utoppy.c b/sys/dev/usb/utoppy.c
index 886d6e153a1..a7b5557375d 100644
--- a/sys/dev/usb/utoppy.c
+++ b/sys/dev/usb/utoppy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: utoppy.c,v 1.1 2006/04/03 08:15:48 scw Exp $ */
+/* $NetBSD: utoppy.c,v 1.2 2006/04/11 14:05:46 christos Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: utoppy.c,v 1.1 2006/04/03 08:15:48 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: utoppy.c,v 1.2 2006/04/11 14:05:46 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -648,7 +648,7 @@ utoppy_recv_packet(struct utoppy_softc *sc, uint16_t *respp, uint32_t timeout)
struct utoppy_header *h;
usbd_status err;
uint32_t len, thislen, requested, bytesleft;
- uint16_t crc;
+ uint16_t crc = 0;
uint8_t *data, *e, t1, t2;
data = sc->sc_in_data;