summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02cec0e)
raw | patch | inline | side by side (parent: 02cec0e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:41:07 +0000 (10:41 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:41:07 +0000 (10:41 +0200) |
[src/utils_format_json.c:300]: (style) Checking if unsigned variable 'offset' is less than zero.
src/utils_format_json.c | patch | blob | history |
index 2c0e4cd029b3f29c3b05521f1171541c9f591679..800b4219109b6070b64157620bb97fb6c5a17a70 100644 (file)
--- a/src/utils_format_json.c
+++ b/src/utils_format_json.c
}
} /* for (keys) */
- if (offset <= 0)
+ if (offset == 0)
return (ENOENT);
buffer[0] = '{'; /* replace leading ',' */