Init mutex just to be safe

pull/1334/head
Willem Melching 2020-04-08 14:09:24 -07:00
parent 434a2b0658
commit 64f6e0c1d1
1 changed files with 3 additions and 0 deletions

View File

@ -919,6 +919,9 @@ int main() {
loopback_can = true;
}
err = pthread_mutex_init(&usb_lock, NULL);
assert(err == 0);
// init libusb
err = libusb_init(&ctx);
assert(err == 0);