Browse Source

Fix missing initialization

Ingo Albrecht 3 years ago
parent
commit
b166eb0d72
2 changed files with 5 additions and 0 deletions
  1. 1 0
      clish/action/action.c
  2. 4 0
      clish/shell/shell_xml.c

+ 1 - 0
clish/action/action.c

@@ -19,6 +19,7 @@ static void clish_action_init(clish_action_t *this)
 	this->builtin = NULL;
 	this->shebang = NULL;
 	this->lock = BOOL_TRUE;
+	this->interactive = BOOL_FALSE;
 	this->interrupt = BOOL_FALSE;
 	this->permanent = BOOL_FALSE;
 	this->expand = TRI_UNDEFINED;

+ 4 - 0
clish/shell/shell_xml.c

@@ -928,6 +928,10 @@ static int process_action(clish_shell_t *shell, clish_xmlnode_t *element,
 	if (lock && lub_string_nocasecmp(lock, "false") == 0)
 		clish_action__set_lock(action, BOOL_FALSE);
 
+	/* interactive */
+	if (interactive && lub_string_nocasecmp(interactive, "true") == 0)
+		clish_action__set_interactive(action, BOOL_TRUE);
+
 	/* interrupt */
 	if (interrupt && lub_string_nocasecmp(interrupt, "true") == 0)
 		clish_action__set_interrupt(action, BOOL_TRUE);