Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 691998fa authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Walleij
Browse files

tools/gpio: Add missing initialization of device_name



lsgpio.c: In function ‘main’:
lsgpio.c:166:7: warning: ‘device_name’ may be used uninitialized in this functio
n [-Wmaybe-uninitialized]
   ret = list_device(device_name);
       ^

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f6a49e5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ void print_usage(void)

int main(int argc, char **argv)
{
	const char *device_name;
	const char *device_name = NULL;
	int ret;
	int c;