]> granicus.if.org Git - curl/commitdiff
tool_getparam: remove duplicate switch case
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 08:28:05 +0000 (10:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:07:55 +0000 (08:07 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

src/tool_getparam.c

index 2c1868383df1260c5e9a98b2ac7cc3adc56acaf9..2012a91acb046147c4b24aaee93c1f33f595724b 100644 (file)
@@ -243,7 +243,7 @@ static const struct LongShort aliases[]= {
   {"El", "tlspassword",              ARG_STRING},
   {"Em", "tlsauthtype",              ARG_STRING},
   {"En", "ssl-allow-beast",          ARG_BOOL},
-  {"Eo", "login-options",            ARG_STRING},
+  /* Eo */
   {"Ep", "pinnedpubkey",             ARG_STRING},
   {"EP", "proxy-pinnedpubkey",       ARG_STRING},
   {"Eq", "cert-status",              ARG_BOOL},
@@ -1569,10 +1569,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
           config->ssl_allow_beast = toggle;
         break;
 
-      case 'o': /* --login-options */
-        GetStr(&config->login_options, nextarg);
-        break;
-
       case 'p': /* Pinned public key DER file */
         GetStr(&config->pinnedpubkey, nextarg);
         break;