Commit 6109b567 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Initialize extra->filename to "shell" when executing a shell command.

The 'filename' parameter wasn't initialized here, so when extra->filename is
used to generate e.g. log messages, garbage entered the log.

	modified:   controller/controller_load.c
parent 96b12d0d
......@@ -643,6 +643,7 @@ static int controller_load_shell(char *args, char *out, int *outlen)
return *outlen;
extra.filename = "shell";
extra.ret = 0;
extra.va_entries = NULL;
extra.va_list_start = false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment