INN commit: trunk/frontends (mailpost.in)

INN Commit rra at isc.org
Mon Dec 7 18:27:39 UTC 2009


    Date: Monday, December 7, 2009 @ 10:27:38
  Author: iulius
Revision: 8843

Fix the use of an uninitialized value in mailpost.

Patch from Harald Dunkel.

Modified:
  trunk/frontends/mailpost.in

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

Modified: mailpost.in
===================================================================
--- mailpost.in	2009-12-04 18:29:45 UTC (rev 8842)
+++ mailpost.in	2009-12-07 18:27:38 UTC (rev 8843)
@@ -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