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
This commit is contained in:
parent
e86a6151f4
commit
ee0941a0b7
@ -179,7 +179,7 @@ int test(char *URL)
|
|||||||
now = tutil_tvnow();
|
now = tutil_tvnow();
|
||||||
msnow = now.tv_sec * 1000 + now.tv_usec / 1000;
|
msnow = now.tv_sec * 1000 + now.tv_usec / 1000;
|
||||||
mslast = last_handle_add.tv_sec * 1000 + last_handle_add.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);
|
fprintf(stdout, "Adding handle %d\n", handlenum);
|
||||||
setup_handle(URL, m, handlenum);
|
setup_handle(URL, m, handlenum);
|
||||||
last_handle_add = now;
|
last_handle_add = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user