summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/tools/whereintheworld/whereintheworld.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/whereintheworld/whereintheworld.pl b/tools/tools/whereintheworld/whereintheworld.pl
index d64e7e5..6a8e21e 100644
--- a/tools/tools/whereintheworld/whereintheworld.pl
+++ b/tools/tools/whereintheworld/whereintheworld.pl
@@ -51,7 +51,7 @@ while ($line = <>) {
}
}
-if (!$error) {
+if (@lines && !$error) {
print shift(@lines);
while (@lines > $thresh) {
shift(@lines);
OpenPOWER on IntegriCloud