Fix: append_list_to_probes(): increment index
A message that is not in the archive (sent off-list or not yet received): [email protected]
Merged in both master and stable-2.6, thanks!
Jérémie
Quoted 29 lines · Philippe Proulx
Reported-by Hannes Weisbach <[email protected]>Signed-off-by Philippe Proulx <[email protected]>--- src/bin/lttng-sessiond/modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/bin/lttng-sessiond/modprobe.c +1
-2@@ -395,7 +395,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" ); --2.3.0
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Jérémie Galarneau EfficiOS Inc. http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev