ソースを参照

Dpkg::BuildOptions: deal properly with undefined values in merge()

Raphaël Hertzog 16 年 前
コミット
4c933be6a5
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1 0
      scripts/Dpkg/BuildOptions.pm

+ 1 - 0
scripts/Dpkg/BuildOptions.pm

@@ -82,6 +82,7 @@ values like "nocheck parallel=2".
 
 sub merge {
     my ($self, $content, $source) = @_;
+    return 0 unless defined $content;
     my $count = 0;
     foreach (split(/\s+/, $content)) {
 	unless (/^([a-z][a-z0-9_-]*)(?:=(\S*))?$/) {