summaryrefslogtreecommitdiff
path: root/json_object_private.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2020-06-13 18:25:32 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2020-06-13 18:25:32 +0000
commit4c10712114a79d1abf0d98ac165648a6aa36d45a (patch)
treeb043cfcd52d0043c8d40512db2ee94565ad8daf8 /json_object_private.h
parent85c244f04807689621fca58075ab4946fad5e996 (diff)
downloadjson-c-4c10712114a79d1abf0d98ac165648a6aa36d45a.tar.gz
Drop the useless "char data[1]" from struct json_object. Fix a typo in a comment.
Diffstat (limited to 'json_object_private.h')
-rw-r--r--json_object_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/json_object_private.h b/json_object_private.h
index 8132a33..7cd90c2 100644
--- a/json_object_private.h
+++ b/json_object_private.h
@@ -47,7 +47,8 @@ struct json_object
struct printbuf *_pb;
json_object_delete_fn *_user_delete;
void *_userdata;
- char data[1]; // Actually the rest of a struct json_object_${o_type}
+ // Actually longer, always malloc'd as some more-specific type.
+ // The rest of a struct json_object_${o_type} follows
};
struct json_object_object