mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
parseconfig: skip a NULL check
Coverity CID 1154198. This NULL check implies that the pointer _can_ be NULL at this point, which it can't. Thus it is dead code. It tricks static analyzers to warn about dereferencing the pointer since the code seems to imply it can be NULL.
This commit is contained in:
parent
b7d3338df2
commit
dddb2aab8d
@ -208,7 +208,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
||||
}
|
||||
}
|
||||
|
||||
if(param && !*param) {
|
||||
if(!*param) {
|
||||
/* do this so getparameter can check for required parameters.
|
||||
Otherwise it always thinks there's a parameter. */
|
||||
if(alloced_param)
|
||||
|
Loading…
Reference in New Issue
Block a user