Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_decc.c 


Log Message:
- don't segv if we can't open the file. this would die if you had a file with
  the same name as the directory edje_decc was trying to create.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_decc.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- edje_decc.c 29 Oct 2004 14:04:23 -0000      1.6
+++ edje_decc.c 10 Dec 2004 16:03:42 -0000      1.7
@@ -201,6 +201,11 @@
             exit (-1);
          }
        f = fopen(out, "w");
+       if (!f) 
+         {
+            printf("ERROR: unable to write file (%s).\n", out);
+            exit (-1);
+         }
        fputs(sf->file, f);
        fclose(f);
      }




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to