File lomoco.diff of Package lomoco

------------------------------------------------------------------------
r79 | gladiac | 2006-03-19 15:12:32 +0100 (Sun, 19 Mar 2006) | 3 lines

* fixed unitialized buffer
  thanks to Nicolas CANIART

------------------------------------------------------------------------
Index: src/lomoco.c
===================================================================
--- src/lomoco.c.orig
+++ 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;
 		}