From: Michael Jeanson Date: Wed, 24 Mar 2021 23:09:41 +0000 (-0400) Subject: fix: size_t is unsigned, can't be negative X-Git-Tag: v2.13.0-rc1~183 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=90417e3efe593df1b5b7547b3ece31ebc0be7f4f;p=lttng-ust.git fix: size_t is unsigned, can't be negative Change-Id: Id4e2c5b3c984978d26b6224794c0073b5c6eaf8a Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/libmsgpack/msgpack.c b/libmsgpack/msgpack.c index 6f31e8fb..10b06adc 100644 --- a/libmsgpack/msgpack.c +++ b/libmsgpack/msgpack.c @@ -487,7 +487,6 @@ void lttng_msgpack_writer_init(struct lttng_msgpack_writer *writer, uint8_t *buffer, size_t size) { lttng_msgpack_assert(buffer); - lttng_msgpack_assert(size >= 0); writer->buffer = buffer; writer->write_pos = buffer;