client: Set saveptr argument of strtok_r to NULL for initial invocation

This commit is contained in:
Marcel Holtmann 2017-08-30 23:17:21 +02:00
parent d8d7a31f74
commit f41fa52f99
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ char **command_completion(const char *text, int start, int end)
{
char **matches = NULL;
const char *family;
char *args;
char *args = NULL;
char *prompt = NULL;
bool ends_with_space = false;