From 45a486f077cfb8e0325dff69f6547f9393413e14 Mon Sep 17 00:00:00 2001 From: Adam Korczynski Date: Wed, 22 Apr 2020 14:32:08 +0100 Subject: [PATCH] Removed an assertion in msgpack --- src/ucl_msgpack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ucl_msgpack.c b/src/ucl_msgpack.c index bd1d1a50..7a732a1b 100644 --- a/src/ucl_msgpack.c +++ b/src/ucl_msgpack.c @@ -764,7 +764,10 @@ ucl_msgpack_get_container (struct ucl_parser *parser, { struct ucl_stack *stack; - assert (obj_parser != NULL); + if (obj_parser == NULL) { + ucl_create_err (&parser->err, "no msgpack_parser"); + return NULL; + } if (obj_parser->flags & MSGPACK_FLAG_CONTAINER) { /*