mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Helper] Throw error when shell parsing fails.
This commit is contained in:
parent
d3218c75a4
commit
1a9e6450e3
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue