From 2bc373740a341d1454592b53da8d097aec7ba0fd Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 3 Feb 2020 11:42:46 +0200 Subject: curl: avoid using strlen for testing if a string is empty Closes #4873 --- src/tool_getparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_getparam.c') diff --git a/src/tool_getparam.c b/src/tool_getparam.c index b757ac8f0..1a72edf3e 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -422,7 +422,7 @@ void parse_cert_parameter(const char *cert_parameter, /* escaped colons and Windows drive letter colons were handled * above; if we're still here, this is a separating colon */ param_place++; - if(strlen(param_place) > 0) { + if(*param_place) { *passphrase = strdup(param_place); } goto done; -- cgit v1.2.3