summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6b1b6ce..87104d3 100644
--- a/main.c
+++ b/main.c
@@ -653,7 +653,7 @@ connect:
devices = (struct device_info**)realloc(devices, sizeof(struct device_info*) * (device_count+1));
if (devices) {
devices[device_count] = cur_dev;
- devices++;
+ device_count++;
}
pthread_mutex_unlock(&usbmux_mutex);
} else {