From 9cb52090dfe4c871f2ca6d98261bd5e1de6d103e Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 19 Sep 2011 16:44:35 -0400 Subject: [PATCH] Fix wrong logical operator Signed-off-by: David Goulet --- liblttngctl/lttngctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttngctl/lttngctl.c b/liblttngctl/lttngctl.c index 26b721e99..bec1dbb85 100644 --- a/liblttngctl/lttngctl.c +++ b/liblttngctl/lttngctl.c @@ -506,7 +506,7 @@ int lttng_enable_event(struct lttng_handle *handle, copy_lttng_domain(&lsm.domain, &handle->domain); - if (ev || ev->name[0] != '\0') { + if (ev && ev->name[0] != '\0') { lsm.cmd_type = LTTNG_ENABLE_EVENT; memcpy(&lsm.u.enable.event, ev, sizeof(lsm.u.enable.event)); } else { -- 2.34.1