]> granicus.if.org Git - curl/commitdiff
curl: correct the switch() logic in ourWriteOut
authorDaniel Stenberg <daniel@haxx.se>
Wed, 7 Nov 2018 10:14:20 +0000 (11:14 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Nov 2018 10:15:20 +0000 (11:15 +0100)
Follow-up to e431daf013, as I did the wrong correction for a compiler
warning. It should be a break and not a fall-through.

Pointed-out-by: Frank Gevaerts
src/tool_writeout.c

index d394411b09ca422859d35c5ac998fc4572a9fce1..d5b0bc44f1e7c17e6e37a169c3087d5363f3cab7 100644 (file)
@@ -324,7 +324,7 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo)
                    curl_easy_getinfo(curl, CURLINFO_SCHEME,
                                      &stringp))
                   fprintf(stream, "%s", stringp);
-                /* FALLTHROUGH */
+                break;
               case VAR_STDOUT:
                 stream = stdout;
                 break;