summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-02-15 14:30:51 +0000
committerdes <des@FreeBSD.org>2003-02-15 14:30:51 +0000
commit8765c964a50978766b61f6120fcc1fffd74bcf16 (patch)
tree07401e3d7f2127d35e8a2a4e628301f1a8018818 /tools
parent058ff5e0dfff09b0b744a61fa1063d72eb72d1dc (diff)
downloadFreeBSD-src-8765c964a50978766b61f6120fcc1fffd74bcf16.zip
FreeBSD-src-8765c964a50978766b61f6120fcc1fffd74bcf16.tar.gz
Avoid an undef warning.
Diffstat (limited to 'tools')
-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