From 65923b02496661196d79d3a565cab58a2b52f938 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:41:07 +0200 Subject: [PATCH] utils_format_json.c: offset is unsigned [src/utils_format_json.c:300]: (style) Checking if unsigned variable 'offset' is less than zero. --- src/utils_format_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_format_json.c b/src/utils_format_json.c index 2c0e4cd0..800b4219 100644 --- a/src/utils_format_json.c +++ b/src/utils_format_json.c @@ -297,7 +297,7 @@ static int meta_data_keys_to_json (char *buffer, size_t buffer_size, /* {{{ */ } } /* for (keys) */ - if (offset <= 0) + if (offset == 0) return (ENOENT); buffer[0] = '{'; /* replace leading ',' */ -- 2.30.2