mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
fix non-initialized comparison
This commit is contained in:
1 parent
e0b6109214
commit
a8c8cfb665
1 file changed
+1
-1
+1
-1
@@ -68,7 +68,7 @@ sub req {
|
||||
my ($out, $buf) = ('', '');
|
||||
eval {
|
||||
alarm $timeout if $timeout;
|
||||
$out .= $buf while (sysread($sock, $buf, 1024) > 0);
|
||||
$out .= $buf while ((sysread($sock, $buf, 1024) or 0) > 0);
|
||||
alarm 0 if $timeout;
|
||||
};
|
||||
close $sock;
|
||||
|
||||
Reference in new issue
Block a user