X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdevtools%2Fjson2c.c;h=b4043e20a3005984784c9452b6f33201317ce53c;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=f83b8e8ec946388873b9b165a313e1b9636d313d;hpb=24d000c2290126abf88204089d132229d63f9a05;p=src%2Fapp-framework-binder.git diff --git a/src/devtools/json2c.c b/src/devtools/json2c.c index f83b8e8e..b4043e20 100644 --- a/src/devtools/json2c.c +++ b/src/devtools/json2c.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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;