From 15e364eae614767a0b174e43065d7516e09d344f Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 30 Jul 2016 16:41:57 +0200 Subject: Initialize variable and unset at end --- include/tests_shells | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/tests_shells') diff --git a/include/tests_shells b/include/tests_shells index 2fd5eeaf..ad2e4983 100644 --- a/include/tests_shells +++ b/include/tests_shells @@ -275,6 +275,7 @@ Register --test-no SHLL-6290 --weight H --network NO --category security --description "Perform Shellshock vulnerability tests" if [ ${SKIPTEST} -eq 0 ]; then FOUND=0 + x="" #Display --indent 2 --text "- Testing for Shellshock vulnerability" LogText "Test: Check if bash is in the list of shells." if [ -f /etc/shells ]; then @@ -396,6 +397,7 @@ else AddHP 5 5 fi + unset x fi # ################################################################################# -- cgit v1.2.3