Remove unecessary "index" variable and cur_mod increment which was
probably meant to increment "index", a bug fixed by
9ae17e2.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
static int append_list_to_probes(const char *list)
{
char *next;
- int index = nr_probes, ret;
+ int ret;
char *tmp_list, *cur_list;
assert(list);
/* Length 13 is "lttng-probe-" + \0 */
name_len = strlen(next) + 13;
- cur_mod = &probes[index++];
+ cur_mod = &probes[nr_probes];
cur_mod->name = zmalloc(name_len);
if (!cur_mod->name) {
PERROR("malloc probe list");
goto error;
}
- cur_mod++;
nr_probes++;
}