/*
- * 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");
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;
switch ((c = *b++)) {
case 0:
b--;
+ buf[0] = 0;
break;
case '/':
buf[0] = '/';