From f2d871acffe6427a067cdad1e421bf197c5655f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 2 Apr 2026 23:31:58 +0000 Subject: [PATCH] fix: spurious local keyword broke sysfs based detection (#533) (#534) The $msg var assigned in sys_interface_check() must not be local to the func, but must capture and modify the callers' own local $msg var --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 863afe0..9d2bd8a 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -3329,7 +3329,7 @@ pr_info # Sets: ret_sys_interface_check_fullmsg # Returns: 0 if file matched, 1 otherwise sys_interface_check() { - local file regex mode msg mockvarname + local file regex mode mockvarname file="$1" regex="${2:-}" mode="${3:-}"