summaryrefslogtreecommitdiffstats
path: root/utils/rk27utils
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-04 13:35:47 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-04 13:35:47 +0100
commit89ab3c27610d441479c6e4133c73043762191b5a (patch)
tree40ea35261457b7ad5ca938af9200433737d48dce /utils/rk27utils
parent8f1fbd1dc8be2718c5ddd7fa8635338c1fe9a2d2 (diff)
downloadrockbox-89ab3c27610d441479c6e4133c73043762191b5a.tar.gz
rockbox-89ab3c27610d441479c6e4133c73043762191b5a.tar.bz2
rockbox-89ab3c27610d441479c6e4133c73043762191b5a.zip
Fix uninitialized variable (should fix libusb retry handling)
Reported by cppcheck Change-Id: I5ac7b73f2e3eaee3d5427d118944613e572f684d
Diffstat (limited to 'utils/rk27utils')
-rw-r--r--utils/rk27utils/rkusbtool/rkusbtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/rk27utils/rkusbtool/rkusbtool.c b/utils/rk27utils/rkusbtool/rkusbtool.c
index afe6171e64..a28f217e30 100644
--- a/utils/rk27utils/rkusbtool/rkusbtool.c
+++ b/utils/rk27utils/rkusbtool/rkusbtool.c
@@ -75,6 +75,7 @@ static int send_msc_cmd(libusb_device_handle *hdev, struct CBWCB_t *cbwcb, uint3
int ret, repeat, transferred;
static uint32_t tag = 0xdaefbc01;
+ repeat = 0;
memset(&cbw, 0, sizeof(cbw));
cbw.dCBWSignature = CBW_SIGNATURE;
cbw.dCBWTag = tag++;