diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-05-30 10:44:37 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-05-30 10:44:37 +0200 |
commit | da8c666e80122109988f3ff93abf8c5877e67dd8 (patch) | |
tree | 54cbbd15d6a60ddfe76cb7e24cb0f910548bdeb2 | |
parent | db308d2ed5805ef6117a88f40a70817547a48092 (diff) |
[Script] Initialize info entry. Don't pass entry at custom input.
Fixes: #1138
-rw-r--r-- | source/dialogs/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c index b217a851..26b9748f 100644 --- a/source/dialogs/script.c +++ b/source/dialogs/script.c @@ -217,6 +217,7 @@ static DmenuScriptEntry *execute_executor ( Mode *sw, char *arg, unsigned int *l retv[( *length )].entry = g_memdup ( buffer, buf_length ); retv[( *length )].icon_name = NULL; retv[( *length )].meta = NULL; + retv[( *length )].info = NULL; retv[( *length )].icon_fetch_uid = 0; retv[( *length )].nonselectable = FALSE; if ( buf_length > 0 && ( read_length > (ssize_t) buf_length ) ) { @@ -313,7 +314,7 @@ static ModeMode script_mode_result ( Mode *sw, int mretv, char **input, unsigned else if ( ( mretv & MENU_CUSTOM_INPUT ) && *input != NULL && *input[0] != '\0' ) { if ( rmpd->no_custom == FALSE ) { script_mode_reset_highlight ( sw ); - new_list = execute_executor ( sw, *input, &new_length, 2 , &(rmpd->cmd_list[selected_line])); + new_list = execute_executor ( sw, *input, &new_length, 2 , NULL ); } else { return RELOAD_DIALOG; } |