From c80b6ed9be80ba3a63256be3a0ae79664bbe6b59 Mon Sep 17 00:00:00 2001 From: ndparker <> Date: Mon, 16 Jul 2001 17:25:41 +0000 Subject: [PATCH 1/1] fixed an 'uninitialized' warning --- selfforum-cgi/shared/Id.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfforum-cgi/shared/Id.pm b/selfforum-cgi/shared/Id.pm index 22535a2..8e91379 100644 --- a/selfforum-cgi/shared/Id.pm +++ b/selfforum-cgi/shared/Id.pm @@ -66,6 +66,8 @@ sub unique_id () { # sub to_base64 ($) { my $x = shift; + return '' unless defined $x; + my $y = $table[$x % 64]; $y = $table[$x % 64].$y while ($x = int ($x/64)); -- 2.34.1