Commit a8c8cfb6 authored by Sergey Lyubka's avatar Sergey Lyubka

fix non-initialized comparison

parent e0b61092
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment