]> err.no Git - yubikey-personalization/commitdiff
send a reference to the typeCallback
authorKlas Lindfors <klas@yubico.com>
Mon, 3 Dec 2012 08:06:31 +0000 (08:06 +0000)
committerKlas Lindfors <klas@yubico.com>
Mon, 3 Dec 2012 08:06:31 +0000 (08:06 +0000)
ykcore/ykcore_osx.c

index 22abdc0b60a584661b53fdbb761ef78cea591b24..616a4d3b0414dfc960c7e52beac1196058ee2281 100644 (file)
@@ -76,7 +76,7 @@ void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len)
 
        size_t i;
 
-       CFMutableArrayRef matches = CFArrayCreateMutable( kCFAllocatorDefault, pids_len, kCFTypeArrayCallBacks );
+       CFMutableArrayRef matches = CFArrayCreateMutable( kCFAllocatorDefault, pids_len, &kCFTypeArrayCallBacks );
 
        CFNumberRef vendorID = CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &vendor_id );
        for(i = 0; i < pids_len; i++) {