summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sk-usbhid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c
index e07b49e9f..180f2eab9 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -218,7 +218,7 @@ find_device(const uint8_t *message, size_t message_len, const char *application,
218{ 218{
219 fido_dev_info_t *devlist = NULL; 219 fido_dev_info_t *devlist = NULL;
220 fido_dev_t *dev = NULL; 220 fido_dev_t *dev = NULL;
221 size_t devlist_len = 0; 221 size_t devlist_len = 0, i;
222 const char *path; 222 const char *path;
223 int r; 223 int r;
224 224
@@ -234,7 +234,7 @@ find_device(const uint8_t *message, size_t message_len, const char *application,
234 234
235 skdebug(__func__, "found %zu device(s)", devlist_len); 235 skdebug(__func__, "found %zu device(s)", devlist_len);
236 236
237 for (size_t i = 0; i < devlist_len; i++) { 237 for (i = 0; i < devlist_len; i++) {
238 const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i); 238 const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i);
239 239
240 if (di == NULL) { 240 if (di == NULL) {