projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: zero out data structure before using it
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index dd9e6927e32d1f9ff1c831d55aee7e774f9b667c..73ba7740fd131863172c53ae9e1cb558fe09f323 100644
(file)
--- 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));
This page took
0.02452 seconds
and
5
git commands to generate.