From da8c666e80122109988f3ff93abf8c5877e67dd8 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 30 May 2020 10:44:37 +0200 Subject: [PATCH] [Script] Initialize info entry. Don't pass entry at custom input. Fixes: #1138 --- source/dialogs/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }