Skip to content

Commit

Permalink
tools/gpio: Add missing initialization of device_name
Browse files Browse the repository at this point in the history
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: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Linus Walleij committed Mar 31, 2016
1 parent f6a49e5 commit 691998f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gpio/lsgpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 691998f

Please sign in to comment.