Skip to content
Snippets Groups Projects
Commit a8c8cfb6 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

fix non-initialized comparison

parent e0b61092
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment