sigma: Fix segfault when no Sigma present.

This commit is contained in:
Håvard Espeland 2012-04-23 13:36:17 +02:00
parent 868501fa46
commit 42cdeef626
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ static int hw_init(const char *devinfo)
/* Look for SIGMAs. */ /* Look for SIGMAs. */
if (ftdi_usb_find_all(&ctx->ftdic, &devlist, if (ftdi_usb_find_all(&ctx->ftdic, &devlist,
USB_VENDOR, USB_PRODUCT) < 0) USB_VENDOR, USB_PRODUCT) <= 0)
goto free; goto free;
/* Make sure it's a version 1 or 2 SIGMA. */ /* Make sure it's a version 1 or 2 SIGMA. */