From 6a833656b04f1bbb825d006109f049d3e8f3da9c Mon Sep 17 00:00:00 2001 From: Wolfgang Karall-Ahlborn Date: Wed, 17 Mar 2021 10:48:52 +0100 Subject: 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 ... --- dmarcts-report-parser.pl | 4 ++-- 1 file 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'; } } } -- cgit v1.2.3