Fix: append_list_to_probes(): increment index
[lttng-tools.git] / src / bin / lttng-sessiond / modprobe.c
index 66a4657d688a1ded0da4322b7eb69f33b156e396..15d075a76e5d6615fd79262b7f1825220e04658b 100644 (file)
@@ -393,7 +393,7 @@ static int append_list_to_probes(const char *list)
                /* Length 13 is "lttng-probe-" + \0 */
                name_len = strlen(next) + 13;
 
-               cur_mod = &probes[index];
+               cur_mod = &probes[index++];
                cur_mod->name = zmalloc(name_len);
                if (!cur_mod->name) {
                        PERROR("malloc probe list");
This page took 0.023225 seconds and 4 git commands to generate.