summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/devtools/json2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devtools/json2c.c b/src/devtools/json2c.c
index 1bc20b0c..9bb9e9bf 100644
--- a/src/devtools/json2c.c
+++ b/src/devtools/json2c.c
@@ -81,13 +81,13 @@ char *make_desc(struct json_object *o)
}
else if (c == '\\') {
switch ((c = *b++)) {
- case 0:
- b--;
- break;
case '/':
buf[0] = '/';
buf[1] = 0;
break;
+ case 0:
+ b--;
+ /*@fallthrough@*/
default:
buf[0] = '\\';
buf[1] = c;