X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-perf-counters.c;h=f8241c392872ff53230c55b7201589794a8c323b;hb=ea8efbbe07e4b524fb308963ff5b0868fa14806f;hp=53ff3cbc10235ff2b6e992119861792ed0733499;hpb=a9d86fd1c36a680eac282bd982896f78631af3ab;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-perf-counters.c b/liblttng-ust/lttng-context-perf-counters.c index 53ff3cbc..f8241c39 100644 --- a/liblttng-ust/lttng-context-perf-counters.c +++ b/liblttng-ust/lttng-context-perf-counters.c @@ -548,7 +548,7 @@ int lttng_add_perf_counter_to_ctx(uint32_t type, lttng_alignof(uint64_t) * CHAR_BIT, lttng_is_signed_type(uint64_t), BYTE_ORDER, 10); - if (!type) { + if (!ust_type) { ret = -ENOMEM; goto type_alloc_error; }