From: cjwatson <> Date: Fri, 22 Aug 2003 01:50:28 +0000 (-0800) Subject: [project @ 2003-08-21 18:50:28 by cjwatson] X-Git-Tag: release/2.6.0~816 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6e0f623ef86533dc7f00faf03352583c7499b7c2;p=debbugs.git [project @ 2003-08-21 18:50:28 by cjwatson] Avoid uninitialized value warnings when asking to view a bug that doesn't exist. --- diff --git a/cgi/common.pl b/cgi/common.pl index d911bd99..a9a0fb16 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -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); }