mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(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:
parent
c343697407
commit
8710d2522f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user