diff --git a/json_object.c b/json_object.c index f0ce5f7..3ff4d64 100644 --- a/json_object.c +++ b/json_object.c @@ -243,7 +243,7 @@ struct json_object* json_object_new_object() if(!this) return NULL; this->_delete = &json_object_object_delete; this->_to_json_string = &json_object_object_to_json_string; - this->o.c_object = lh_kchar_table_new(JSON_OBJECT_DEF_HASH_ENTIRES, + this->o.c_object = lh_kchar_table_new(JSON_OBJECT_DEF_HASH_ENTRIES, NULL, &json_object_lh_entry_free); return this; } diff --git a/json_object.h b/json_object.h index bbfea85..4c8f6db 100644 --- a/json_object.h +++ b/json_object.h @@ -12,7 +12,7 @@ #ifndef _json_object_h_ #define _json_object_h_ -#define JSON_OBJECT_DEF_HASH_ENTIRES 16 +#define JSON_OBJECT_DEF_HASH_ENTRIES 16 #undef FALSE #define FALSE ((boolean)0)