aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-02-03 11:42:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-02-04 08:27:09 +0100
commit2bc373740a341d1454592b53da8d097aec7ba0fd (patch)
treecbb9a0e6937f55a20c65272103e438d0e157d5de /src/tool_getparam.c
parentf41deddde879c15350df880b1c8959bb521cd679 (diff)
curl: avoid using strlen for testing if a string is empty
Closes #4873
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c2
1 files changed, 1 insertions, 1 deletions
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;