[Helper] Throw error when shell parsing fails.

This commit is contained in:
Dave Davenport 2020-05-04 14:10:35 +02:00
parent d3218c75a4
commit 1a9e6450e3
1 changed files with 4 additions and 0 deletions

View File

@ -1004,6 +1004,10 @@ gboolean helper_execute_command ( const char *wd, const char *cmd, gboolean run_
helper_parse_setup ( config.run_command, &args, &argc, "{cmd}", cmd, (char *) 0 );
}
if ( args == NULL ) {
return FALSE;
}
if ( context != NULL ) {
if ( context->name == NULL ) {
context->name = args[0];