Minor refactor to parsing and testing cleanup

This commit is contained in:
2022-11-15 22:57:25 -05:00
parent 086d6f9106
commit 1595a6310d
5 changed files with 81 additions and 117 deletions

View File

@@ -116,7 +116,7 @@ struct ucl_object *ucl_list_append(struct ucl_object *list, struct ucl_object *o
if (list->cell.car == NULL) {
list->cell.car = obj;
return list;
return NULL;
}
while (iter->cell.cdr != NULL) {
@@ -124,7 +124,7 @@ struct ucl_object *ucl_list_append(struct ucl_object *list, struct ucl_object *o
}
iter->cell.cdr = ucl_cell_create(obj, NULL);
return list;
return iter->cell.cdr;
}
void ucl_print_obj(struct ucl_object *obj) {