X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=blobdiff_plain;f=src%2Fdevtools%2Fjson2c.c;h=b4043e20a3005984784c9452b6f33201317ce53c;hp=109b6ee90ba52be45154464f4729ea2763857147;hb=65353dce81a629e042800bb7b86fcd869a76727e;hpb=45c8372c2b4137691a38c2a04f4a5759a110f2f7 diff --git a/src/devtools/json2c.c b/src/devtools/json2c.c index 109b6ee9..b4043e20 100644 --- a/src/devtools/json2c.c +++ b/src/devtools/json2c.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "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;