mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:57:18 +03:00
tool_paramhlp: fix "enumerated type mixed with another type"
Warning by icc Closes #9179
This commit is contained in:
parent
ddfd41c9b2
commit
0bb842a587
1 changed files with 3 additions and 3 deletions
|
|
@ -314,11 +314,11 @@ ParameterError proto2num(struct OperationConfig *config,
|
|||
};
|
||||
|
||||
if(!str)
|
||||
return 1;
|
||||
return PARAM_OPTION_AMBIGUOUS;
|
||||
|
||||
buffer = strdup(str); /* because strtok corrupts it */
|
||||
if(!buffer)
|
||||
return 1;
|
||||
return PARAM_NO_MEM;
|
||||
|
||||
/* Allow strtok() here since this isn't used threaded */
|
||||
/* !checksrc! disable BANNEDFUNC 2 */
|
||||
|
|
@ -341,7 +341,7 @@ ParameterError proto2num(struct OperationConfig *config,
|
|||
break;
|
||||
default: /* Includes case of terminating NULL */
|
||||
Curl_safefree(buffer);
|
||||
return 1;
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue