From: eeppeliteloop@gmail.com (Philippe Proulx)
Subject: [lttng-dev] [PATCH lttng-tools 1/2] Fix: append_list_to_probes(): increment index
Date: Tue, 28 Apr 2015 17:08:58 -0400 [thread overview]
Message-ID: <1430255338-6461-1-git-send-email-eeppeliteloop@gmail.com> (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
reply other threads:[~2015-04-28 21:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1430255338-6461-1-git-send-email-eeppeliteloop@gmail.com \
--to=eeppeliteloop@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox