bug 1237: Declare variables before use
authorBenny Baumann <BenBE@geshi.org>
Wed, 8 Jan 2014 01:27:40 +0000 (02:27 +0100)
committerBenny Baumann <BenBE@geshi.org>
Wed, 8 Jan 2014 01:27:40 +0000 (02:27 +0100)
CommModule/client.pl

index c71102c..6ff3b5e 100755 (executable)
@@ -834,7 +834,7 @@ sub HandleCerts($$)
 
       my $days=$org?($server?(365*2):365):calculateDays($row{"memid"});
 
-      $md_id = 0;
+      my $md_id = 0;
       $md_id = 1 if( $raw{'md'} eq "md5");
       $md_id = 2 if( $raw{'md'} eq "sha1");
       $md_id = 3 if( $raw{'md'} eq "rmd160");