diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-04 16:14:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-04 16:16:12 +0200 |
commit | 8128db9ec19d6c15b5f1e239550a1c24a2f68022 (patch) | |
tree | 2e21819479e36322ba201023dee0600c12a20a10 | |
parent | 55678c6951b2d7d1b8a1b32208af9c03a2a7d426 (diff) |
getparameter: remove dead code
Coverity CID 1061126. 'parse' will always be non-NULL here.
-rw-r--r-- | src/tool_getparam.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index cb5e23454..588a20723 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -437,12 +437,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ /* we can loop here if we have multiple single-letters */ if(!longopt) { - if(NULL != parse) { - letter = (char)*parse; - } - else { - letter = '\0'; - } + letter = (char)*parse; subletter='\0'; } else { |