From 79bf349a50d187b1ecabbceef5b539b0ec1ec507 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Mon, 2 May 2022 14:04:59 +0200 Subject: [PATCH] tool_getparam: simplify conditional statement param_place cannot be NULL here since we immediately efter this block perform arithmetic on it (and use it in order to get here) so there is little reason to check. Closes: #8786 Reviewed-by: Daniel Stenberg --- src/tool_getparam.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 67de74dff7..cff1839b03 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -420,10 +420,9 @@ void parse_cert_parameter(const char *cert_parameter, separator, but we try to detect when it is used for a file name! On windows. */ #ifdef WIN32 - if(param_place && - (param_place == &cert_parameter[1]) && - (cert_parameter[2] == '\\' || cert_parameter[2] == '/') && - (ISALPHA(cert_parameter[0])) ) { + if((param_place == &cert_parameter[1]) && + (cert_parameter[2] == '\\' || cert_parameter[2] == '/') && + (ISALPHA(cert_parameter[0])) ) { /* colon in the second column, followed by a backslash, and the first character is an alphabetic letter: -- 2.47.3