mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
Bash-5.2 patch 16: fix for a crash if one of the expressions in an arithmetic for command expands to NULL
This commit is contained in:
+1
-1
@@ -3050,7 +3050,7 @@ eval_arith_for_expr (l, okp)
|
||||
temp = expand_arith_string (expr, Q_DOUBLE_QUOTES|Q_ARITH);
|
||||
if (l->next)
|
||||
free (expr);
|
||||
new = make_word_list (make_word (temp), (WORD_LIST *)NULL);
|
||||
new = make_word_list (make_word (temp ? temp : ""), (WORD_LIST *)NULL);
|
||||
free (temp);
|
||||
|
||||
if (new)
|
||||
|
||||
Reference in New Issue
Block a user