From: David Goulet Date: Mon, 19 Sep 2011 20:44:35 +0000 (-0400) Subject: Fix wrong logical operator X-Git-Tag: v2.0-pre14~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9cb52090dfe4c871f2ca6d98261bd5e1de6d103e;p=lttng-tools.git Fix wrong logical operator Signed-off-by: David Goulet --- 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 {