From: David Goulet Date: Tue, 26 Jul 2011 14:45:43 +0000 (-0400) Subject: Add reset of the session message X-Git-Tag: v2.0-pre4~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=35a6fdb70a0134fb3be48aa953beaf28db94c9d0;p=lttng-tools.git Add reset of the session message Signed-off-by: David Goulet --- diff --git a/liblttngctl/liblttngctl.c b/liblttngctl/liblttngctl.c index 6df82c483..e0a815882 100644 --- a/liblttngctl/liblttngctl.c +++ b/liblttngctl/liblttngctl.c @@ -208,6 +208,14 @@ static int disconnect_sessiond(void) return ret; } +/* + * Reset the session message structure. + */ +static void reset_session_msg(void) +{ + memset(&lsm, 0, sizeof(struct lttcomm_session_msg)); +} + /* * ask_sessiond * @@ -266,6 +274,7 @@ static int ask_sessiond(enum lttcomm_sessiond_command lct, void **buf) end: disconnect_sessiond(); + reset_session_msg(); return ret; }