Enlightenment CVS committal
Author : rephorm
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_load.c
Log Message:
Check if descriptors exist (i.e. if edje_init() was run) before trying to use them.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_load.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- edje_load.c 4 Sep 2004 09:45:59 -0000 1.47
+++ edje_load.c 9 Sep 2004 21:55:32 -0000 1.48
@@ -437,6 +437,13 @@
Evas_List *l;
int id = -1;
+ if (_edje_edd_edje_file == NULL)
+ {
+ printf("EDJE ERROR: NULL data descriptor. Did you edje_init()?.\n");
+
+ return;
+ }
+
ed->file = evas_hash_find(_edje_file_hash, ed->path);
if (ed->file)
ed->file->references++;
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs