mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
atoi: remove atoi usage
This commit is contained in:
parent
cbe67a1b71
commit
5db0a412ff
12 changed files with 36 additions and 22 deletions
|
|
@ -473,7 +473,7 @@ static void _ldap_trace (const char *fmt, ...)
|
|||
|
||||
if(do_trace == -1) {
|
||||
const char *env = getenv("CURL_TRACE");
|
||||
do_trace = (env && atoi(env) > 0);
|
||||
do_trace = (env && strtol(env, NULL, 10) > 0);
|
||||
}
|
||||
if(!do_trace)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue