summaryrefslogtreecommitdiff
path: root/tests/libtest/lib540.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-10-26 18:46:32 +0200
committerYang Tse <yangsita@gmail.com>2011-10-26 18:57:14 +0200
commit51e5a2bf3fc4b555e118ecede183d7e3d8e4fb88 (patch)
treec26a0775b50b045deee3b3ad097a180534e7e704 /tests/libtest/lib540.c
parent8165e05f293800ee2b75abfecf7a6220252c5228 (diff)
downloadcurl-51e5a2bf3fc4b555e118ecede183d7e3d8e4fb88.tar.gz
multi tests: OOM handling fixes - commit 629d2e34 follow-up
Diffstat (limited to 'tests/libtest/lib540.c')
-rw-r--r--tests/libtest/lib540.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index 21d14872b..a47f1dee6 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -136,6 +136,8 @@ static int loop(int num, CURLM *cm, const char* url, const char* userpwd,
if(res)
return res;
+ /* At this point, L is guaranteed to be greater or equal than -1. */
+
if(L != -1) {
T.tv_sec = L/1000;
T.tv_usec = (L%1000)*1000;