From f41fa52f99b71a43895059d244935009a2bcfdc0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 30 Aug 2017 23:17:21 +0200 Subject: [PATCH] client: Set saveptr argument of strtok_r to NULL for initial invocation --- client/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/command.c b/client/command.c index c18eb4c3..f96efa77 100644 --- a/client/command.c +++ b/client/command.c @@ -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;