Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_engines.c
Log Message:
- patch from pfritz to fix bug 467. Bail early if we don't have a valid
engine as we won't be able to get any hook information. I'm spitting out
a warning as this seems like it would be a bad thing.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- ewl_engines.c 7 May 2008 13:38:23 -0000 1.58
+++ ewl_engines.c 24 Jul 2008 03:47:11 -0000 1.59
@@ -1550,6 +1550,14 @@
DCHECK_TYPE_RET(embed, EWL_EMBED_TYPE, NULL);
caller = EWL_ENGINE(embed->engine);
+
+ /* bail if we don't have a valid engine */
+ if (!caller)
+ {
+ DWARNING("Calling ewl_engine_hook_get without a valid
engine.");
+ DRETURN_PTR(NULL, DLEVEL_STABLE);
+ }
+
hooks = ewl_engine_hooks_get(caller, type);
if ((!hooks || !hooks[hook]) && caller->dependancies)
{
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs