diff options
-rw-r--r-- | src/devtools/genskel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devtools/genskel.c b/src/devtools/genskel.c index 5e9c37e0..80dcd381 100644 --- a/src/devtools/genskel.c +++ b/src/devtools/genskel.c @@ -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] = '/'; |