From 9b57f5336c3e809f8f29d5ba2a8652619cdd18d0 Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Sat, 24 Jun 2017 22:30:40 -0500 Subject: Fix a crash in gpioctl, the flags list must be null terminated. --- usr.sbin/gpioctl/gpioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c index 21b2688..8e2968c 100644 --- a/usr.sbin/gpioctl/gpioctl.c +++ b/usr.sbin/gpioctl/gpioctl.c @@ -69,6 +69,7 @@ static struct flag_desc pwm_flags[] = { { "DUTY", GPIO_PWM_DUTY }, { "FREQ", GPIO_PWM_FREQ }, { "PERIOD", GPIO_PWM_PERIOD }, + { NULL, 0 }, }; static void -- cgit v1.1