From: <enl...@li...> - 2003-09-17 04:36:58
|
Enlightenment CVS committal Author : atmosphere Project : e17 Module : apps/entrance Dir : e17/apps/entrance/src/client Modified Files: entrance_session.c Log Message: Use the new autofoo crap and *cough* 0 out those structs =) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_session.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- entrance_session.c 13 Sep 2003 05:08:52 -0000 1.11 +++ entrance_session.c 17 Sep 2003 04:36:57 -0000 1.12 @@ -14,6 +14,7 @@ char theme_path[PATH_MAX]; e = (Entrance_Session) malloc(sizeof(struct _Entrance_Session)); + memset(e, 0, sizeof(struct _Entrance_Session)); e->auth = entrance_auth_new(); e->config = entrance_config_parse(PACKAGE_CFG_DIR "/entrance_config.db"); @@ -124,9 +125,9 @@ * /etc/X11. A notable exception is Gentoo, but there is a customized * ebuild for this distribution. Please comment. */ if((session_key = (char*)evas_hash_find(e->config->sessions, e->session))) - snprintf(buf, PATH_MAX, "/etc/X11/Xsession %s", session_key); + snprintf(buf, PATH_MAX, "%s %s", ENTRANCE_XSESSION, session_key); else - snprintf(buf, PATH_MAX, "/etc/X11/Xsession"); /* Default session */ + snprintf(buf, PATH_MAX, "%s", ENTRANCE_XSESSION);/* Default session */ /* If a path was specified for the session, use that path instead of passing the session name to Xsession */ |