From 14c49e36461e8c37df824c1f52b06d9adbd8d199 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 8 May 2022 10:11:40 +0200 Subject: [PATCH] util/lint/checkpatch.pl: Fix "uninitialized value" error message Change-Id: I74807f240779060158c6769f63a6e9438a6e5fbe Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/64173 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- util/lint/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl index a7a31db144..6d2d1dd011 100755 --- a/util/lint/checkpatch.pl +++ b/util/lint/checkpatch.pl @@ -845,7 +845,7 @@ sub read_words { next; } - $$wordsRef .= '|' if ($$wordsRef ne ""); + $$wordsRef .= '|' if (defined $$wordsRef); $$wordsRef .= $line; } close($file);