From 1a9e6450e33e75a357446a3b20c20b5c56596731 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 4 May 2020 14:10:35 +0200 Subject: [Helper] Throw error when shell parsing fails. --- source/helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/helper.c b/source/helper.c index 071da9bd..d9a1bd4f 100644 --- a/source/helper.c +++ b/source/helper.c @@ -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]; -- cgit v1.2.3