skip section if it is not defined
authorDon Armstrong <don@donarmstrong.com>
Sun, 9 Apr 2017 23:42:13 +0000 (16:42 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 9 Apr 2017 23:42:13 +0000 (16:42 -0700)
bugscan

diff --git a/bugscan b/bugscan
index e9478f0..555eb4c 100755 (executable)
--- a/bugscan
+++ b/bugscan
@@ -33,7 +33,7 @@ for my $p (keys %scanlib::packagelist) {
        }
        print "package\n";
        print $p, "\n";
-       print $section, "\n";
+       print $section, "\n" if defined $section;
        print $scanlib::maintainer{$package}, "\n";
        print "\n";
 }