[interchange: 1/2] Reducing a warning message when using vlink.pl

Gert van der Spoel <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 613b1fc4dc22773f6820daa67eb472ddc0f64efc
Author: Gert van der Spoel <[email protected]>
Date:   Mon Apr 11 12:45:34 2011 +0200

    Reducing a warning message when using vlink.pl

 dist/src/vlink.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/dist/src/vlink.pl b/dist/src/vlink.pl
index 758f1e9..10c2da4 100755
--- a/dist/src/vlink.pl
+++ b/dist/src/vlink.pl
@@ -127,7 +127,7 @@ sub send_environment () {
 
 sub send_entity {
 	return '' unless defined $ENV{CONTENT_LENGTH};
-	my $len = $ENV{CONTENT_LENGTH};
+	my $len = $ENV{CONTENT_LENGTH} || 0;
 	return '' unless $len > 0;
 
 	my $val = "entity\n";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.