Author: Jan-Pascal van Best <janpascal@vanbest.org>
Last-Update: 2025-05-08
Bug-Debian: https://bugs.debian.org/1104957
Description: Fix uninitialized value in string

--- a/maildirsync.pl
+++ b/maildirsync.pl
@@ -96,7 +96,7 @@ sub add_opt ($;$) { my ($optname, $value
         exit_with_error("Invalid parameter value: $optname: $value") if $value !~ /^$regex$/;
     }
     verbose 4 => "add option $optname = ".($value || "");
-    if (reftype($OPT{$optname}) ne 'ARRAY') {
+    if (!(ref($OPT{$optname}) eq 'ARRAY')) {
         $OPT{$optname} = $value;
     } else {
         push @{$OPT{$optname}}, $value;
