The variable active_low is not initialized, so the value is undefined
and if the -l argument is not passed, the undefined value remains. Fix
it by initializing it to false.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
unsigned int offsets[GPIOD_LINE_BULK_MAX_LINES];
struct timespec timeout = { 10, 0 };
unsigned int num_lines = 0, offset;
+ bool active_low = false;
int optc, opti, ret, i;
struct mon_ctx ctx;
- bool active_low;
char *end;
memset(&ctx, 0, sizeof(ctx));