summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-10-25 17:57:36 +0200
committerRichard Braun <rbraun@sceen.net>2016-10-25 17:57:36 +0200
commit4996cbc643d9d6c01cbc4c236df022d8d896909e (patch)
tree414ef2e6dac2c31ff777efe1a984eafa528b514d /shell.c
parentae7816e57f3c9e2e5de9b8304ae9ab761d1e18e3 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index d8fa387..4232bb6 100644
--- a/shell.c
+++ b/shell.c
@@ -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;