fix: size_t is unsigned, can't be negative
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 24 Mar 2021 23:09:41 +0000 (19:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Mar 2021 18:02:32 +0000 (14:02 -0400)
Change-Id: Id4e2c5b3c984978d26b6224794c0073b5c6eaf8a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libmsgpack/msgpack.c

index 6f31e8fb176c9e604ec457eaeb1e27661da00890..10b06adc5b006335798a9ce28e2bd83679235054 100644 (file)
@@ -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;
This page took 0.037796 seconds and 4 git commands to generate.