File: fix_uninitialized.patch

package info (click to toggle)
maildirsync 1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: perl: 622; sh: 141; pascal: 134; makefile: 45
file content (16 lines) | stat: -rw-r--r-- 612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;