X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-mustach.c;h=5e4348a29ef61e8d0fa70d9a37aa63ceeadd86ee;hb=f8b04951b4ccafdf28b875825edd46316fafb519;hp=45d94e87940658aadc2918937656774f88b44806;hpb=ed2743714bec59de1273cc0617d6b588a06a1203;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-mustach.c b/src/wgtpkg-mustach.c index 45d94e8..5e4348a 100644 --- a/src/wgtpkg-mustach.c +++ b/src/wgtpkg-mustach.c @@ -31,7 +31,7 @@ #define MAX_DEPTH 256 /* - * exploration state when instanciating mustache + * exploration state when instantiating mustache */ struct expl { struct json_object *root; @@ -62,8 +62,8 @@ static char *keyval(char *read, int isptr) } else { if (c == '\\') { switch (read[1]) { - case '\\': *write++ = c; - case '=': c = *++read; + case '\\': *write++ = c; /*@fallthrough@*/ + case '=': c = *++read; /*@fallthrough@*/ default: break; } } @@ -92,8 +92,8 @@ static char *first(char **name, int isptr) while (c && c != '/') { if (c == '~') { switch(read[1]) { - case '1': c = '/'; - case '0': read++; + case '1': c = '/'; /*@fallthrough@*/ + case '0': read++; /*@fallthrough@*/ default: break; } }