aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-04 16:14:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-04 16:16:12 +0200
commit8128db9ec19d6c15b5f1e239550a1c24a2f68022 (patch)
tree2e21819479e36322ba201023dee0600c12a20a10 /src
parent55678c6951b2d7d1b8a1b32208af9c03a2a7d426 (diff)
getparameter: remove dead code
Coverity CID 1061126. 'parse' will always be non-NULL here.
Diffstat (limited to 'src')
-rw-r--r--src/tool_getparam.c7
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 {