From: <mar...@us...> - 2007-01-31 15:46:24
|
Revision: 9959 http://svn.sourceforge.net/gphoto/?rev=9959&view=rev Author: marcusmeissner Date: 2007-01-31 07:46:18 -0800 (Wed, 31 Jan 2007) Log Message: ----------- explicitly make sure USB vendor is not 0 before dumping it. Modified Paths: -------------- trunk/libgphoto2/packaging/generic/print-camera-list.c Modified: trunk/libgphoto2/packaging/generic/print-camera-list.c =================================================================== --- trunk/libgphoto2/packaging/generic/print-camera-list.c 2007-01-31 14:44:39 UTC (rev 9958) +++ trunk/libgphoto2/packaging/generic/print-camera-list.c 2007-01-31 15:46:18 UTC (rev 9959) @@ -562,8 +562,8 @@ } } } else { - printf (pdata->usbcam_string, - a->usb_vendor, a->usb_product); + if (a->usb_vendor) + printf (pdata->usbcam_string, a->usb_vendor, a->usb_product); } if (pdata->script != NULL) { printf("RUN+=\"%s\"\n", pdata->script); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |