1
0
Fork 0
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:
Dave Davenport 2020-05-04 14:10:35 +02:00
parent d3218c75a4
commit 1a9e6450e3

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];