]> git.pld-linux.org Git - packages/perl-ldap.git/blob - ignore-uninitialized.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-ldap.git] / ignore-uninitialized.patch
1 --- perl-ldap-0.56/lib/Net/LDAP/Util.pm~        2013-07-05 22:24:24.000000000 +0200
2 +++ perl-ldap-0.56/lib/Net/LDAP/Util.pm 2013-08-24 23:00:24.178648364 +0200
3 @@ -755,7 +755,9 @@
4  
5      # Time::Local's timegm() interpret years strangely
6      if ($year >= 1000) {
7 -      $dec = "0.$dec";
8 +      if (defined($dec)) {
9 +        $dec = "0.$dec";
10 +      }
11  
12        # decimals in case of missing minutes / seconds - see RFC 4517
13        if (!defined($min)) {
14 @@ -793,7 +793,7 @@
15            }
16  
17            # make decimal part directional
18 -          if ($dec != 0) {
19 +          if (defined($dec) && $dec != 0) {
20              if ($time < 0) {
21                $dec = 1 - $dec;
22                $time++; 
This page took 0.079255 seconds and 3 git commands to generate.