From 4faaa10a8c253811ec83aa916592ccf9115c7320 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 30 Jul 2016 16:41:11 +0200 Subject: [PATCH] Initialize variables and cleanup --- include/tests_filesystems | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tests_filesystems b/include/tests_filesystems index eecb621b..e048a518 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -688,6 +688,7 @@ LIST_FS_NOT_SUPPORTED="cramfs freevxfs hfs hfsplus jffs2 squashfs udf" FOUND=0 AVAILABLE_FS="" + AVAILABLE_MODPROBE_FS="" for FS in ${LIST_FS_NOT_SUPPORTED}; do # Check if filesystem is present in modprobe output FIND=`${MODPROBEBINARY} -v -n $FS 2>/dev/null | ${EGREPBINARY} "/${FS}.ko" | tail -1` @@ -720,6 +721,7 @@ else LogText "Test skipped lsmod binary not found or /proc/modules can not be opened" fi + unset AVAILABLE_FS AVAILABLE_MODPROBE_FS fi # #################################################################################