From 8128db9ec19d6c15b5f1e239550a1c24a2f68022 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Oct 2014 16:14:39 +0200 Subject: getparameter: remove dead code Coverity CID 1061126. 'parse' will always be non-NULL here. --- src/tool_getparam.c | 7 +------ 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3