From 611a37e72daff14666f7dcc781674775e0c8e5ea Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 19 Jan 1999 04:40:48 +0000 Subject: [PATCH] Have to "break" at end of second level switch. --- lib/dns/gen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index a269c18ed7..45ed0c3218 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -142,6 +142,7 @@ doswitch(char *name, char *function, char *args, fprintf(stdout, "\t\tdefault: result = %s; \\\n", res); fputs(/*{*/ "\t\t} \\\n", stdout); + fputs("\t\tbreak; \\\n", stdout); subswitch = 0; } if (tt->class && tt->type != lasttype) { @@ -164,6 +165,7 @@ doswitch(char *name, char *function, char *args, if (subswitch) { fprintf(stdout, "\t\tdefault: result = %s; \\\n", res); fputs(/*{*/ "\t\t}\n", stdout); + fputs("\t\tbreak; \\\n", stdout); } if (first) fprintf(stdout, "\n#define %s result = %s;\n", name, res);