summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/libucl/ucl_msgpack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libucl/ucl_msgpack.c b/contrib/libucl/ucl_msgpack.c
index e8ebfba8a..5620a7b11 100644
--- a/contrib/libucl/ucl_msgpack.c
+++ b/contrib/libucl/ucl_msgpack.c
@@ -750,7 +750,7 @@ ucl_msgpack_get_parser_from_type (unsigned char t)
shift = CHAR_BIT - parsers[i].prefixlen;
mask = parsers[i].prefix >> shift;
- if (mask == (t >> shift)) {
+ if (mask == (((unsigned int)t) >> shift)) {
return &parsers[i];
}
}
@@ -969,8 +969,8 @@ ucl_msgpack_consume (struct ucl_parser *parser)
finish_array_value,
error_state
} state = read_type, next_state = error_state;
- struct ucl_msgpack_parser *obj_parser;
- uint64_t len;
+ struct ucl_msgpack_parser *obj_parser = NULL;
+ uint64_t len = 0;
ssize_t ret, remain, keylen = 0;
#ifdef MSGPACK_DEBUG_PARSER
uint64_t i;