Skip to content

Commit

Permalink
RT#58333 Check definedness of hash key before use
Browse files Browse the repository at this point in the history
This addresses a warning new to Perl 5.12.
  • Loading branch information
dap committed Sep 22, 2010
1 parent e462820 commit 2d1164d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Net/XMPP/Debug.pm
Expand Up @@ -151,7 +151,7 @@ sub Init
my %args;
while($#_ >= 0) { $args{ lc pop(@_) } = pop(@_); }

delete($args{file}) if (lc($args{file}) eq "stdout");
delete($args{file}) if (defined $args{file} && lc($args{file}) eq "stdout");

$args{time} = 0 if !exists($args{time});
$args{setdefault} = 0 if !exists($args{setdefault});
Expand Down

0 comments on commit 2d1164d

Please sign in to comment.