From: Klas Lindfors Date: Fri, 14 Sep 2012 07:54:14 +0000 (+0200) Subject: return 0 on error, saving the errno X-Git-Tag: v1.8.0~70 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5149a92293f351359fe2cb252799c500ad2082e2;p=yubikey-personalization return 0 on error, saving the errno --- diff --git a/ykcore/ykcore_libusb-1.0.c b/ykcore/ykcore_libusb-1.0.c index 153a70e..9e31eff 100644 --- a/ykcore/ykcore_libusb-1.0.c +++ b/ykcore/ykcore_libusb-1.0.c @@ -139,7 +139,7 @@ int _ykusb_start(void) ykl_errno = libusb_init(&usb_ctx); if(ykl_errno) { yk_errno = YK_EUSBERR; - return ykl_errno; + return 0; } libusb_inited = 1; return 1;