From fe7ae562e5d0121d1c5f4d3ba1ec4117c7bbaab8 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 17 Jan 2019 21:53:53 +0100 Subject: [PATCH] checkstack.pl: fix arch autodetection chomp trailing newlines Signed-off-by: Bernhard Reutner-Fischer --- scripts/checkstack.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 55cdd78c1..b5980a2e3 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs); my $arch = shift; if ($arch eq "") { $arch = `uname -m`; + 1 while chomp $arch; } $x = "[0-9a-f]"; # hex character