aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-12 22:22:38 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-12 22:22:38 -0800
commit2d109f974b6a03a79db3dd8a5ffe5c2aff76659e (patch)
tree082415222af72e0ac17eac9260a5e5a1ce59221a /json.c
parent5811ff4554da3d980ff32a83efa35ea1a4512484 (diff)
Some general cleanup, adding comments, adding more __attribute__s where
applicable
Diffstat (limited to 'json.c')
-rw-r--r--json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/json.c b/json.c
index 22a3ae2..f099554 100644
--- a/json.c
+++ b/json.c
@@ -11,6 +11,7 @@
// `comma` is used to track whether a comma will need to be printed before the
// next object or not.
//
+__attribute__((nonnull))
static int _json_match(const char *text, match_t *m, int comma, int verbose)
{
if (!verbose) {