summaryrefslogtreecommitdiff
path: root/src/tests/eo/mixin/mixin_inherit.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-12-30 22:16:55 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:20 +0100
commit914dde776ff22fc1c5ba3d2ed1859bb2b1e993e9 (patch)
tree873de465f369be71cee17fe79b8c162204b57d35 /src/tests/eo/mixin/mixin_inherit.c
parent63c271dc5e81b9f7d81fcfb4ef06e7cbd2791330 (diff)
eo2: fix uninitialized vars in tests
because of conditional execution of eo2_do() fct calls these vars could end up not initialized.
Diffstat (limited to 'src/tests/eo/mixin/mixin_inherit.c')
-rw-r--r--src/tests/eo/mixin/mixin_inherit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/eo/mixin/mixin_inherit.c b/src/tests/eo/mixin/mixin_inherit.c
index 558c54cf04..4578b54039 100644
--- a/src/tests/eo/mixin/mixin_inherit.c
+++ b/src/tests/eo/mixin/mixin_inherit.c
@@ -12,7 +12,7 @@
12static int 12static int
13_a_get(Eo *obj, void *class_data EINA_UNUSED) 13_a_get(Eo *obj, void *class_data EINA_UNUSED)
14{ 14{
15 int ret; 15 int ret = 0;
16 eo2_do_super(obj, MY_CLASS, ret = simple_a_get()); 16 eo2_do_super(obj, MY_CLASS, ret = simple_a_get());
17 printf("%s %d\n", __func__, ret); 17 printf("%s %d\n", __func__, ret);
18 18