X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fcounter%2Fcounter-api.h;fp=src%2Fcommon%2Fcounter%2Fcounter-api.h;h=955c5bb2927cbf621f007167a1d8feb30a032f5b;hb=a4b5af217b22f855342570ce11ddeea41661fd5d;hp=ce2bf06a4dc9ca8636afd879ad146b77d7f00963;hpb=04408848ff9f5d2a0be60a74930b09eecb19e5f0;p=lttng-ust.git diff --git a/src/common/counter/counter-api.h b/src/common/counter/counter-api.h index ce2bf06a..955c5bb2 100644 --- a/src/common/counter/counter-api.h +++ b/src/common/counter/counter-api.h @@ -234,7 +234,7 @@ static inline int __lttng_counter_add_percpu(const struct lib_counter_config *co struct lib_counter *counter, const size_t *dimension_indexes, int64_t v) { - int64_t move_sum; + int64_t move_sum = 0; int ret; ret = __lttng_counter_add(config, COUNTER_ALLOC_PER_CPU, config->sync,