summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-31 13:25:09 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-12-31 12:45:36 +0000
commitee0941a0b79d6ee96fd8db24af96118925fda18f (patch)
tree9617f4902597de4f04df06e5fac9e0ee68499c11
parente86a6151f49e045b009e8b4db072cf3eb3c7bdf1 (diff)
downloadgnurl-ee0941a0b79d6ee96fd8db24af96118925fda18f.tar.gz
gnurl-ee0941a0b79d6ee96fd8db24af96118925fda18f.tar.bz2
gnurl-ee0941a0b79d6ee96fd8db24af96118925fda18f.zip
lib1900.c: Fixed cppcheck error
lib1900.c:182: (style) Array index 'handlenum' is used before limits check Bug: https://github.com/bagder/curl/pull/133
-rw-r--r--tests/libtest/lib1900.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib1900.c b/tests/libtest/lib1900.c
index fa83130b6..2f64742a1 100644
--- a/tests/libtest/lib1900.c
+++ b/tests/libtest/lib1900.c
@@ -179,7 +179,7 @@ int test(char *URL)
now = tutil_tvnow();
msnow = now.tv_sec * 1000 + now.tv_usec / 1000;
mslast = last_handle_add.tv_sec * 1000 + last_handle_add.tv_usec / 1000;
- if(msnow - mslast >= urltime[handlenum] && handlenum < num_handles) {
+ if((msnow - mslast) >= urltime[handlenum]) {
fprintf(stdout, "Adding handle %d\n", handlenum);
setup_handle(URL, m, handlenum);
last_handle_add = now;