]> git.donarmstrong.com Git - debbugs.git/commitdiff
Also check for package being defined before checking package for spaces and slashes
authorDon Armstrong <don@donarmstrong.com>
Wed, 16 Apr 2014 17:10:46 +0000 (10:10 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 16 Apr 2014 17:10:46 +0000 (10:10 -0700)
Debbugs/Status.pm

index dfafce14891ecb2ba5425a2d4473c311710b4854..73506611a26d585da976a31576b1b7a9008cda8c 100644 (file)
@@ -732,7 +732,7 @@ sub addfoundversions {
     my $version = shift;
     my $isbinary = shift;
     return unless defined $version;
-    undef $package if $package =~ m[(?:\s|/)];
+    undef $package if defined $package and $package =~ m[(?:\s|/)];
     my $source = $package;
     if (defined $package and $package =~ s/^src://) {
        $isbinary = 0;