diff --git a/apps/cli/cli_pipe.c b/apps/cli/cli_pipe.c index f593877f..4492372b 100644 --- a/apps/cli/cli_pipe.c +++ b/apps/cli/cli_pipe.c @@ -32,6 +32,7 @@ ***** END LICENSE BLOCK ***** * * @note Paths to bins, such as GREP_BIN, are detected in configure.ac + * @note These functions are normally run in a forked sub-process as spawned in cligen_eval() */ #ifdef HAVE_CONFIG_H @@ -132,8 +133,8 @@ pipe_grep_fn(clicon_handle h, char *value = NULL; cg_var *cv; char *str; - char *option; - char *argname; + char *option = NULL; + char *argname = NULL; if (cvec_len(argv) != 2){ clicon_err(OE_PLUGIN, EINVAL, "Received %d arguments. Expected: