aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/suite/eo_test_value.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/suite/eo_test_value.c')
-rw-r--r--src/tests/eo/suite/eo_test_value.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/eo/suite/eo_test_value.c b/src/tests/eo/suite/eo_test_value.c
index 2372d069ba..823717236c 100644
--- a/src/tests/eo/suite/eo_test_value.c
+++ b/src/tests/eo/suite/eo_test_value.c
@@ -16,10 +16,11 @@ START_TEST(eo_value)
Eina_Value val2, eo_val;
void *tmpp = NULL;
Eo_Dbg_Info *eo_dbg_info;
- Eo *obj = eo_add(SIMPLE_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, SIMPLE_CLASS, NULL);
eo_dbg_info = EO_DBG_INFO_LIST_APPEND(NULL, "Root");
- eo_do(obj, eo_dbg_info_get(eo_dbg_info));
+ eo_do(obj, eo_dbg_info_get(obj, eo_dbg_info));
fail_if(!eo_dbg_info);
ck_assert_str_eq(eo_dbg_info->name, "Root");
str = eina_value_to_string(&eo_dbg_info->value);