{
if (JC_STRING_C(jso)->len < 0)
{
- /* Due to json_object_str_string(), we might have a pointer */
+ /* Due to json_object_set_string(), we might have a pointer */
return JC_STRING(jso)->c_string.pdata;
}
return JC_STRING(jso)->c_string.idata;
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