summaryrefslogtreecommitdiff
path: root/docs/examples/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/debug.c')
-rw-r--r--docs/examples/debug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/debug.c b/docs/examples/debug.c
index 684a18327..68d93039e 100644
--- a/docs/examples/debug.c
+++ b/docs/examples/debug.c
@@ -95,10 +95,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== Info: %s", data);
- /* FALLTHROUGH */
- default: /* in case a new one is introduced to shock us */
return 0;
-
case CURLINFO_HEADER_OUT:
text = "=> Send header";
break;
@@ -117,6 +114,8 @@ int my_trace(CURL *handle, curl_infotype type,
case CURLINFO_SSL_DATA_IN:
text = "<= Recv SSL data";
break;
+ default: /* in case a new one is introduced to shock us */
+ return 0;
}
dump(text, stderr, (unsigned char *)data, size, config->trace_ascii);