diff options
author | Wolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com> | 2021-03-17 12:48:52 +0300 |
---|---|---|
committer | Wolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com> | 2021-03-17 12:48:52 +0300 |
commit | 6a833656b04f1bbb825d006109f049d3e8f3da9c (patch) | |
tree | cedb1dd09ed6d77af87ce0f8618bdb592e057f91 | |
parent | 7181f97a0063ad5a022be30b9a3aee1aaf053235 (diff) |
Also use 'unknown' instead of undef
Easier than using defined() in the condition to get rid of
Use of uninitialized value $dkimresult in string eq ...
-rwxr-xr-x | dmarcts-report-parser.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmarcts-report-parser.pl b/dmarcts-report-parser.pl index ace1597..756476a 100755 --- a/dmarcts-report-parser.pl +++ b/dmarcts-report-parser.pl @@ -914,7 +914,7 @@ sub storeXMLInDatabase { # If any of them are different, and don't contain a "pass" result, then $dkimresult will be empty $dkimresult = $rp->[0]->{'result'}; } else { - $dkimresult = undef; + $dkimresult = 'unknown'; } } } @@ -947,7 +947,7 @@ sub storeXMLInDatabase { # If any of them are different, and don't contain a "pass" result, then $spfresult will be empty $spfresult = $rp->[0]->{'result'}; } else { - $spfresult = undef; + $spfresult = 'unknown'; } } } |