Fix: append_list_to_probes(): increment index
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 28 Apr 2015 21:08:58 +0000 (17:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 May 2015 16:05:53 +0000 (12:05 -0400)
Reported-by: Hannes Weisbach <hannes.weisbach@mailbox.tu-dresden.de>
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.033223 seconds and 4 git commands to generate.