aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-01 11:34:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-01 11:34:42 +0000
commitd685ecb20ed2fe5184ba753227fa39c324cdfcf5 (patch)
treebafe2a4a7d38070c9b4086de0391c7cee2877255
parenta37e514fc12141b6cd26d43bdd410e201285f5d3 (diff)
downloadrspamd-d685ecb20ed2fe5184ba753227fa39c324cdfcf5.tar.gz
rspamd-d685ecb20ed2fe5184ba753227fa39c324cdfcf5.zip
Fix warnings
-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;