checkAPI: error out on empty filelist

This will help detect some bogus checkapi runs in the future.

Change-Id: I43345e3a0a5471e9655f34e36ccf1562d6526758
Reviewed-on: https://code.wireshark.org/review/23946
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
João Valverde 2017-10-08 17:33:16 +01:00 committed by Michael Mann
parent 9cfb746e65
commit 46f4664b29
1 changed files with 2 additions and 0 deletions

View File

@ -2126,6 +2126,8 @@ if ("$filenamelist" ne "") {
close(FC);
}
die "no files to process" unless (scalar @filelist);
# Read through the files; do various checks
while ($_ = pop @filelist)
{