X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.c;h=217d45a2577f8f67df59cb5d65093f96e6caad24;hb=d4769e1418514c6320ff16b2585562308f108c90;hp=ff7d993265082439672a12ffed175809b942e9cd;hpb=2198c1e1b48c9c98f17cce24adde8408b5cd1c64;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index ff7d99326..217d45a25 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1616,6 +1616,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain, sizeof(struct lttng_filter_bytecode) + filter->len); if (!filter_copy) { + ret = LTTNG_ERR_NOMEM; goto error; } @@ -3153,7 +3154,7 @@ int cmd_snapshot_record(struct ltt_session *session, int ret = LTTNG_OK; unsigned int use_tmp_output = 0; struct snapshot_output tmp_output; - unsigned int nb_streams, snapshot_success = 0; + unsigned int snapshot_success = 0; assert(session); assert(output);