From e628fede2acbfc6614d92833209cdf179c00a457 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 1 Oct 2015 18:10:08 +0200 Subject: [PATCH] ubjson: initialize variable To get rid of a compiler warning. --- sys/ubjson/ubjson-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ubjson/ubjson-read.c b/sys/ubjson/ubjson-read.c index f3de9a3eec..42dfb85dbe 100644 --- a/sys/ubjson/ubjson-read.c +++ b/sys/ubjson/ubjson-read.c @@ -131,7 +131,7 @@ static ubjson_read_callback_result_t _ubjson_read_length(ubjson_cookie_t *restri return result; } - int64_t len64; + int64_t len64 = -1; ssize_t read; if (type == UBJSON_TYPE_INT32) { int32_t len32;