summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-05-08 10:11:40 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-05-16 02:28:44 +0000
commit14c49e36461e8c37df824c1f52b06d9adbd8d199 (patch)
treecff264d0bbc0f7ca9eb20256268e1eb79d0ee3c2 /util
parent0014bce46be97f28594248bbf9951bd0d0c4bf17 (diff)
downloadcoreboot-14c49e36461e8c37df824c1f52b06d9adbd8d199.tar.gz
coreboot-14c49e36461e8c37df824c1f52b06d9adbd8d199.tar.bz2
coreboot-14c49e36461e8c37df824c1f52b06d9adbd8d199.zip
util/lint/checkpatch.pl: Fix "uninitialized value" error message
Change-Id: I74807f240779060158c6769f63a6e9438a6e5fbe Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64173 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/lint/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index a7a31db144d7..6d2d1dd01130 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);