(variable_completion_function): cleanup Wconditional-uninitialized warning.

input_complete.c:383:42: error: variable 'p' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
        temp = g_string_new_len (*env_p, p - *env_p);
                                         ^

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-05-21 14:51:46 +00:00 committed by Andrew Borodin
parent c343697407
commit 8710d2522f

View File

@ -353,7 +353,7 @@ variable_completion_function (const char *text, int state, input_complete_t flag
static char **env_p = NULL;
static gboolean isbrace = FALSE;
static size_t varlen = 0;
const char *p;
const char *p = NULL;
(void) flags;
SHOW_C_CTX ("variable_completion_function");