From 996de3c771ebf249a9a40e5ff76daf60d55cb02f Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 15 Jan 2014 15:30:47 -0500 Subject: [PATCH 1/1] Fix: zero out data structure before using it Fixes #716 Signed-off-by: David Goulet --- src/bin/lttng-sessiond/cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index dd9e6927e..73ba7740f 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1439,6 +1439,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain, assert(usess); /* Create the default JUL tracepoint. */ + memset(&uevent, 0, sizeof(uevent)); uevent.type = LTTNG_EVENT_TRACEPOINT; uevent.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL; strncpy(uevent.name, DEFAULT_JUL_EVENT_NAME, sizeof(uevent.name)); -- 2.34.1