cedric pushed a commit to branch master.

commit 32fa4583704b3875eefcac85e75c7579a2ca5496
Author: Cedric Bail <[email protected]>
Date:   Mon Aug 12 08:58:37 2013 +0900

    edje: fix forgotten fetch.
---
 src/lib/edje/edje_smart.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 1e2775b..de3ee80 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -333,7 +333,7 @@ _edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, 
va_list *list)
    const char *file = va_arg(*list, const char *);
    const char *group = va_arg(*list, const char *);
    Eina_Bool *ret = va_arg(*list, Eina_Bool *);
-   Eina_File *f;
+   Eina_File *f = NULL;
    Eina_Array *nested;
 
    if (ret) *ret = EINA_FALSE;
@@ -343,6 +343,9 @@ _edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, 
va_list *list)
         f = eina_file_open(file, EINA_FALSE);
         if (!f) 
           {
+             Edje *ed;
+
+             ed = _edje_fetch(obj);
              ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
              return ;
           }

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to