Fix infinite loop in wgt_info_param
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 23 Jun 2017 12:03:33 +0000 (14:03 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 23 Jun 2017 12:03:33 +0000 (14:03 +0200)
Change-Id: I8a623a40e48108c8999083667dae1230da2d206f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/wgt-info.c

index 12b3966..283b905 100644 (file)
@@ -501,6 +501,7 @@ const char *wgt_info_param(const struct wgt_desc_feature *feature, const char *n
        while(param) {
                if (0 == strcmp(name, param->name))
                        return param->value;
+               param = param->next;
        }
        return NULL;
 }