diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-05-04 14:10:35 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-05-04 14:10:35 +0200 |
commit | 1a9e6450e33e75a357446a3b20c20b5c56596731 (patch) | |
tree | cdca327abb61890370b9ca3ab4dd2f958d0bfbf0 | |
parent | d3218c75a4ad7722c77f164955b3ed29c8ead1a9 (diff) |
[Helper] Throw error when shell parsing fails.
-rw-r--r-- | source/helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]; |