Clean up many strdups
This commit is contained in:
@@ -41,11 +41,11 @@ static void test_put2_get(void) {
|
||||
|
||||
static void test_put_modify_get(void) {
|
||||
struct ucl_object *obj = ucl_tuple_create(
|
||||
ucl_string_create(strdup("bar")),
|
||||
ucl_string_create(strdup("baz")));
|
||||
ucl_string_create("bar"),
|
||||
ucl_string_create("baz"));
|
||||
|
||||
ucl_state_put(state, "foo", obj);
|
||||
ucl_list_append(obj, ucl_string_create(strdup("quux")));
|
||||
ucl_list_append(obj, ucl_string_create("quux"));
|
||||
response = ucl_state_get(state, "foo");
|
||||
|
||||
TEST_ASSERT_OBJ_STRING(ucl_list_nth(response, 2));
|
||||
|
||||
Reference in New Issue
Block a user