Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17840: LJSUP-6905: Resolve 'uninitialized value...

Committer: gariev
LJSUP-6905: Resolve 'uninitialized value' in Memcached perl module.
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2010-12-01 10:36:38 UTC (rev 17839)
+++ trunk/cgi-bin/ljlib.pl	2010-12-01 10:57:56 UTC (rev 17840)
@@ -472,7 +472,7 @@
     my ($opt, @uids) = @_;
 
     # allow optional opt hashref as first argument
-    unless (ref $opt eq 'HASH') {
+    if ($opt && ref $opt ne 'HASH') {
         push @uids, $opt;
         $opt = {};
     }

Tags: gariev, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments