Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-parser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com>2021-03-17 12:48:52 +0300
committerWolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com>2021-03-17 12:48:52 +0300
commit6a833656b04f1bbb825d006109f049d3e8f3da9c (patch)
treecedb1dd09ed6d77af87ce0f8618bdb592e057f91
parent7181f97a0063ad5a022be30b9a3aee1aaf053235 (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-xdmarcts-report-parser.pl4
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';
}
}
}