projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81627bd
)
Reset internal transfer flags on submit
author
Daniel Drake
<dsd@gentoo.org>
Sat, 23 Aug 2008 05:57:44 +0000
(
00:57
-0500)
committer
Daniel Drake
<dsd@gentoo.org>
Sat, 23 Aug 2008 05:57:44 +0000
(
00:57
-0500)
This fixes a problem pointed out by Lou, where resubmitting a transfer
that previously timed out never timed out again, as if the timeout had
been set to 0.
libusb/io.c
patch
|
blob
|
history
diff --git
a/libusb/io.c
b/libusb/io.c
index
984fe31
..
3e553ef
100644
(file)
--- a/
libusb/io.c
+++ b/
libusb/io.c
@@
-997,6
+997,7
@@
API_EXPORTED int libusb_submit_transfer(struct libusb_transfer *transfer)
int r;
itransfer->transferred = 0;
+ itransfer->flags = 0;
r = calculate_timeout(itransfer);
if (r < 0)
return LIBUSB_ERROR_OTHER;