twinkle twinkle little fix...
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 3 Dec 2010 14:00:04 +0000 (14:00 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 3 Dec 2010 14:00:04 +0000 (14:00 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@55185 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c

index 16bfc68..a067885 100644 (file)
@@ -6391,6 +6391,9 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
 
    fclose(f);
 
+   if (!success)
+     goto almost_out;
+
    fd = mkstemp(tmp_out);
    if (fd < 0)
      {
@@ -6406,7 +6409,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
      {
         success = EINA_FALSE;
         close(fd);
-        goto the_way_out;
+        goto the_doorway;
      }
 
    f = fdopen(fd, "rb");
@@ -6414,7 +6417,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
      {
         success = EINA_FALSE;
         close(fd);
-        goto the_way_out;
+        goto the_doorway;
      }
 
    fseek(f, 0, SEEK_END);
@@ -6453,6 +6456,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
 
 the_way_out:
    fclose(f);
+the_doorway:
    unlink(tmp_out);
 almost_out:
    unlink(tmp_in);