From a8c8cfb6657602867ead5a4da55b58518a4074d9 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Sat, 11 Jan 2014 10:09:26 +0000 Subject: [PATCH] fix non-initialized comparison --- build/test/test.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/test/test.pl b/build/test/test.pl index 5166c31e7..a2379c03e 100644 --- a/build/test/test.pl +++ b/build/test/test.pl @@ -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; -- GitLab