Browse files

log/summarize: set undefined strings as empty str

avoids undef warnings
  • Loading branch information...
1 parent 2416d1e commit 012a7a4918251b4cfa8f1c2ff992bf644354acef @msimerson msimerson committed Dec 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 log/summarize
View
6 log/summarize
@@ -136,14 +136,14 @@ sub handle_dispatch {
my ($message, $pid, $line) = @_;
if ($message =~ /^dispatching MAIL FROM/i) {
my ($from) = $message =~ /<(.*?)>/;
- $pids{$pid}{from} = $from;
+ $pids{$pid}{from} = $from || '';
}
elsif ($message =~ /^dispatching RCPT TO/i) {
my ($to) = $message =~ /<(.*?)>/;
- $pids{$pid}{to} = $to;
+ $pids{$pid}{to} = $to || '';
}
elsif ($message =~ m/dispatching (EHLO|HELO) (.*)/) {
- $pids{$pid}{helo_host} = $2;
+ $pids{$pid}{helo_host} = $2 || '';
}
elsif ($message eq 'dispatching DATA') { }
elsif ($message eq 'dispatching QUIT') { }

0 comments on commit 012a7a4

Please sign in to comment.