From 33d5c19549aa60568dbc6c9faf6f426f7193fbd1 Mon Sep 17 00:00:00 2001 From: Kerin Millar Date: Thu, 27 Jun 2024 14:26:27 +0100 Subject: Don't explicitly assign the empty string in is_subset() While it is correct to do so, the key may be created without assignment. Signed-off-by: Kerin Millar --- functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index afc170a..faf9d64 100644 --- a/functions.sh +++ b/functions.sh @@ -235,7 +235,7 @@ is_subset() if (word == ENVIRON["SENTINEL"]) { break } else { - set1[word] = "" + set1[word] } } if (i == 1 || argc - i < 2) { @@ -243,7 +243,7 @@ is_subset() } for (i++; i < argc; i++) { word = ARGV[i] - set2[word] = "" + set2[word] } for (word in set2) { delete set1[word] -- cgit v1.2.3-65-gdbad