From caf357a2c8218ea08dff52fa84455421f3e1f6d9 Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Mon, 26 May 2003 04:58:26 +0000 Subject: [PATCH] Remove uninitialized local variable in favor of global. PR: bin/52685 Submitted by: Alexander Nedotsukov Approved by: re (scottl) --- usr.bin/usbhidctl/usbhid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c index 1e56a1ba3ded..a6c3351e5fac 100644 --- a/usr.bin/usbhidctl/usbhid.c +++ b/usr.bin/usbhidctl/usbhid.c @@ -201,7 +201,6 @@ dumpdata(int f, report_desc_t rd, int loop) static int one = 1; u_int32_t colls[100]; int sp = 0; - int report_id; char namebuf[10000], *namep; hids = 0; @@ -245,7 +244,7 @@ dumpdata(int f, report_desc_t rd, int loop) if (all || gotname(namebuf)) { if (!noname) printf("%s=", namebuf); - prdata(dbuf + (report_id != 0), n); + prdata(dbuf + (reportid != 0), n); printf("\n"); } }