summaryrefslogtreecommitdiff
path: root/solenv/bin/patch_sanitizer.pl
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/patch_sanitizer.pl')
-rwxr-xr-xsolenv/bin/patch_sanitizer.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/bin/patch_sanitizer.pl b/solenv/bin/patch_sanitizer.pl
index d08699c1c0b0..d7297f772497 100755
--- a/solenv/bin/patch_sanitizer.pl
+++ b/solenv/bin/patch_sanitizer.pl
@@ -11,7 +11,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: patch_sanitizer.pl,v $
#
-# $Revision: 1.5 $
+# $Revision: 1.6 $
#
# This file is part of OpenOffice.org.
#
@@ -92,6 +92,7 @@ sub parse_patch {
open PATCHFILE, "< $patchfile" or die "Cannot open file $patchfile $!";
my @patchfile = <PATCHFILE>;
close PATCHFILE;
+ return %hunks if ( $#patchfile == -1 );
if ( $patchfile[0] =~ /^---/ ) {
$patchtype = "unified";
$pfirst = '^--- [^\*]*$';