]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-08-21 18:50:28 by cjwatson]
authorcjwatson <>
Fri, 22 Aug 2003 01:50:28 +0000 (17:50 -0800)
committercjwatson <>
Fri, 22 Aug 2003 01:50:28 +0000 (17:50 -0800)
Avoid uninitialized value warnings when asking to view a bug that doesn't
exist.

cgi/common.pl

index d911bd991f0dd3e0d6ada927a7fa32b1e8de1a1b..a9a0fb165126957e69e3c888e26961f863f6a22f 100644 (file)
@@ -733,6 +733,7 @@ sub getsrcpkgs {
 sub buglog {
     my $bugnum = shift;
     my $location = getbuglocation($bugnum, 'log');
+    return undef unless defined $location;
     return getbugcomponent($bugnum, 'log', $location);
 }