]> err.no Git - yubikey-personalization/commitdiff
return 0 on error, saving the errno
authorKlas Lindfors <klas@yubico.com>
Fri, 14 Sep 2012 07:54:14 +0000 (09:54 +0200)
committerKlas Lindfors <klas@yubico.com>
Fri, 14 Sep 2012 07:54:14 +0000 (09:54 +0200)
ykcore/ykcore_libusb-1.0.c

index 153a70ed137b32ff8dd5a74f55400615ce23e26d..9e31eff8d96aac72b01ccde675a403a476eea47e 100644 (file)
@@ -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;