Enlightenment CVS committal

Author  : morlenxus
Project : e_modules
Module  : notification

Dir     : e_modules/notification/src


Modified Files:
        e_mod_main.c 


Log Message:
Fix segfault on dbus init error...

===================================================================
RCS file: /cvs/e/e_modules/notification/src/e_mod_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_main.c        19 Mar 2008 16:32:21 -0000      1.11
+++ e_mod_main.c        12 Aug 2008 18:23:56 -0000      1.12
@@ -262,6 +262,15 @@
 
    /* set up the notification daemon */
    d = e_notification_daemon_add("e_notification_module", "Enlightenment");
+   if (!d)
+     {
+       _notification_cfg_free(notification_cfg);
+       notification_cfg = NULL;
+       e_util_dialog_show(D_("Error During DBus Init!"),
+                          D_("Error during DBus init! Please check if "
+                             "dbus is correctly installed and running."));
+       return NULL;
+     }
    notification_cfg->daemon = d;
    notification_cfg->default_timeout = 5.0;
    e_notification_daemon_data_set(d, notification_cfg);



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to