File: 00_no_uninitialized_buffers.patch

package info (click to toggle)
lomoco 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 364 kB
  • sloc: ansic: 691; xml: 295; sh: 120; makefile: 38; awk: 22
file content (18 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Thibaut VARENE <varenet@debian.org>
Date:   Fri Mar 31 21:09:56 2006 +0200
Description: No longer prints uninitialized buffer.
Bug-Debian: 357734

diff --git a/src/lomoco.c b/src/lomoco.c
index 918a322..2dbab4d 100644
--- a/src/lomoco.c
+++ b/src/lomoco.c
@@ -667,7 +667,7 @@ int scan_bus (struct usb_bus *bus) {
 				device->filename,
 				device->descriptor.idVendor,
 				device->descriptor.idProduct,
-				ret ? product : "Unknown"
+				ret > 0 ? product : "Unknown"
 				);
 			continue;
 		}