Browse Source

Specifically set the cancellable state for it to not be uninitialised in the usb transfer struct.

Con Kolivas 12 years ago
parent
commit
c2c6987784
1 changed files with 2 additions and 1 deletions
  1. 2 1
      usbutils.c

+ 2 - 1
usbutils.c

@@ -2313,7 +2313,8 @@ static int usb_submit_transfer(struct usb_transfer *ut, struct libusb_transfer *
 		ut->cancellable = true;
 		ut->cancellable = true;
 		INIT_LIST_HEAD(&ut->ct.list);
 		INIT_LIST_HEAD(&ut->ct.list);
 		list_add(&ct_list, &ut->ct.list);
 		list_add(&ct_list, &ut->ct.list);
-	}
+	} else
+		ut->cancellable = false;;
 	cg_wunlock(&cgusb_fd_lock);
 	cg_wunlock(&cgusb_fd_lock);
 
 
 	return err;
 	return err;