tools: gpio: fix -c option of gpio-event-mon
[linux-2.6-microblaze.git] / tools / gpio / gpio-event-mon.c
index 6c12295..5dee2b9 100644 (file)
@@ -86,6 +86,7 @@ int monitor_device(const char *device_name,
                        gpiotools_test_bit(values.bits, i));
        }
 
+       i = 0;
        while (1) {
                struct gpio_v2_line_event event;