X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdevtools%2Fgenskel.c;h=aab2e5608cf3bb259da48eff94cda6cd7e36b96a;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=52e0d5af6b258099ebd1068e9331e188ed2a3171;hpb=fd57dbf84b32f574ad55305487748eb2db182474;p=src%2Fapp-framework-binder.git diff --git a/src/devtools/genskel.c b/src/devtools/genskel.c index 52e0d5af..aab2e560 100644 --- a/src/devtools/genskel.c +++ b/src/devtools/genskel.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"); @@ -192,7 +192,7 @@ char *cify(const char *str) char *make_info(const char *text, int split) { const char *a, *b; - char *desc, c, buf[3]; + char *desc, c, buf[3] = {0}; size_t len; int i, pos, e; @@ -221,6 +221,7 @@ char *make_info(const char *text, int split) switch ((c = *b++)) { case 0: b--; + buf[0] = 0; break; case '/': buf[0] = '/';