Update copyright dates
[src/app-framework-binder.git] / src / devtools / genskel.c
index 5e9c37e..aab2e56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * 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] = '/';