aboutsummaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-10-07 13:44:06 +0000
committergerv%gerv.net <>2002-10-07 13:44:06 +0000
commitc84c1809b5bda16318a5dad7be9440a1be4a5fc0 (patch)
treee20b71bc3f48376437ebd13ac63a3c614d873fca /globals.pl
parentb8851cdd5c15e0d21543d9fe08159b9ced8c950f (diff)
downloadbugs-c84c1809b5bda16318a5dad7be9440a1be4a5fc0.tar
bugs-c84c1809b5bda16318a5dad7be9440a1be4a5fc0.tar.gz
bugs-c84c1809b5bda16318a5dad7be9440a1be4a5fc0.tar.bz2
bugs-c84c1809b5bda16318a5dad7be9440a1be4a5fc0.tar.xz
bugs-c84c1809b5bda16318a5dad7be9440a1be4a5fc0.zip
Bug 172740 - "use of uninitialized variable" warnings. Patch by gerv; r=bbaetz.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index f1e8f0d74..b52161eeb 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1631,6 +1631,7 @@ sub GetFormat {
my ($template, $format, $ctype) = @_;
$ctype ||= "html";
+ $format ||= "";
# Security - allow letters and a hyphen only
$ctype =~ s/[^a-zA-Z\-]//g;