Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH lttng-tools 1/2] Fix: append_list_to_probes(): increment index
@ 2015-04-28 21:08 Philippe Proulx
  0 siblings, 0 replies; only message in thread
From: Philippe Proulx @ 2015-04-28 21:08 UTC (permalink / raw)


Reported-by: Hannes Weisbach <hannes.weisbach at mailbox.tu-dresden.de>
Signed-off-by: Philippe Proulx <eeppeliteloop at gmail.com>
---
 src/bin/lttng-sessiond/modprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c
index a9035da..d730a1d 100644
--- a/src/bin/lttng-sessiond/modprobe.c
+++ b/src/bin/lttng-sessiond/modprobe.c
@@ -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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-28 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 21:08 [lttng-dev] [PATCH lttng-tools 1/2] Fix: append_list_to_probes(): increment index Philippe Proulx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox