From 6e0f623ef86533dc7f00faf03352583c7499b7c2 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Thu, 21 Aug 2003 17:50:28 -0800 Subject: [PATCH] [project @ 2003-08-21 18:50:28 by cjwatson] Avoid uninitialized value warnings when asking to view a bug that doesn't exist. --- cgi/common.pl | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5