mirror of
https://github.com/json-c/json-c.git
synced 2026-04-09 07:19:06 +08:00
Drop the useless "char data[1]" from struct json_object. Fix a typo in a comment.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user