X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=774db635e627f0aeae5cc24fb7da8ce00f63116e;hb=94d6432422ca8bdd0918789ce2335a44b29faa81;hp=02795812e40bc5da3445953b0e56e382ff46ef27;hpb=6616898c4373267522bcacca20e58157bd5a538b;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 02795812..774db635 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -244,6 +244,7 @@ sub _rcv { # Complement to _send if ($bytes_read > 0) { if ($msg =~ /\n/) { @lines = split /\r?\n/, $msg; + $lines[0] = '' unless @lines; $lines[0] = $conn->{msg} . $lines[0] if exists $conn->{msg}; push @lines, ' ' unless @lines; if ($msg =~ /\n$/) {