diff options
author | Richard Braun <rbraun@sceen.net> | 2016-10-25 17:57:36 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-10-25 17:57:36 +0200 |
commit | 4996cbc643d9d6c01cbc4c236df022d8d896909e (patch) | |
tree | 414ef2e6dac2c31ff777efe1a984eafa528b514d /shell.c | |
parent | ae7816e57f3c9e2e5de9b8304ae9ab761d1e18e3 (diff) |
Fix uninitialized variable warnings
Instead of using the GCC-specific var = var notation, which Clang seems
to dislike, drop the idea of silencing the warning, and instead force
the variables to a null initialization value (0, NULL, {}, whatever
works).
Diffstat (limited to 'shell.c')
-rw-r--r-- | shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -819,7 +819,7 @@ out: static int shell_process_tabulation(void) { - const struct shell_cmd *cmd; + const struct shell_cmd *cmd = NULL; /* GCC */ struct shell_line *current_line; const char *name; unsigned long i, size; |