Skip to content

Commit

Permalink
Item10889: fix uninitialised warnings for 5.12
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@11988 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jun 18, 2011
1 parent 0ffe93b commit a4e50ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Query/OP_lc.pm
Expand Up @@ -27,7 +27,8 @@ sub new {
sub evaluate {
my $this = shift;
my $node = shift;
return $this->evalUnary( $node, sub { lc(shift) }, @_ );
return $this->evalUnary( $node,
sub { my $arg = shift; defined $arg ? lc($arg) : undef }, @_ );
}

1;
Expand All @@ -36,7 +37,7 @@ Author: Crawford Currie http://c-dot.co.uk
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2010 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2011 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Query/OP_uc.pm
Expand Up @@ -27,7 +27,8 @@ sub new {
sub evaluate {
my $this = shift;
my $node = shift;
return $this->evalUnary( $node, sub { uc(shift) }, @_ );
return $this->evalUnary( $node,
sub { my $arg = shift; defined $arg ? uc($arg) : undef }, @_ );
}

1;
Expand All @@ -36,7 +37,7 @@ Author: Crawford Currie http://c-dot.co.uk
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2010 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2011 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit a4e50ae

Please sign in to comment.