INN commit: branches/2.5/frontends (mailpost.in)

INN Commit rra at isc.org
Mon Dec 7 18:38:25 UTC 2009


    Date: Monday, December 7, 2009 @ 10:38:25
  Author: iulius
Revision: 8844

Fix the use of an uninitialized value in mailpost.

Patch from Harald Dunkel.

Modified:
  branches/2.5/frontends/mailpost.in

-------------+
 mailpost.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: mailpost.in
===================================================================
--- mailpost.in	2009-12-07 18:27:38 UTC (rev 8843)
+++ mailpost.in	2009-12-07 18:38:25 UTC (rev 8844)
@@ -200,8 +200,8 @@
     # On the first header, $line will be undefined.
     ($_, $line) = ($line, $_) ; # Swap $line and $_.
 
-    last if defined($_) && /^$/ ;
-    next if /^$/ ;		# Only on first header will this happen.
+    last if defined($_) && /^$/;
+    next unless defined($_);     # Only on first header will this happen.
 
     push @errorText, "($_)\n";
 




More information about the inn-committers mailing list