Skip to content

Commit

Permalink
Dont try to read zero byte patch files
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishcoleman committed May 28, 2022
1 parent bfcc26f commit 3e25aaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/hexpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,14 @@ ()
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)) {
Expand Down

0 comments on commit 3e25aaf

Please sign in to comment.