diff --git a/scripts/hexpatch.pl b/scripts/hexpatch.pl index f82783d..9b27f7c 100755 --- a/scripts/hexpatch.pl +++ b/scripts/hexpatch.pl @@ -258,6 +258,14 @@ sub main() { next; } + if (-z $patchfile) { + warn("Patchfile $patchfile is zero bytes, skipping\n"); + if ($fail_on_missing) { + exit(1); + } + next; + } + my $db = read_patchfile($patchfile); if (!defined($db)) {