You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/Net-XMPP/files/1.02-defined.patch

15 lines
553 B

https://rt.cpan.org/Public/Bug/Display.html?id=58333
http://github.com/dap/Net-XMPP/commit/2d1164d7c50d7c034f3d1efb03ad9319b24dfd24
--- Net-XMPP-1.02/lib/Net/XMPP/Debug.pm
+++ Net-XMPP-1.02/lib/Net/XMPP/Debug.pm
@@ -151,7 +151,7 @@
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});