Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop
Modified Files:
ecore_desktop.c
Log Message:
sometimes... HOME is not set... believe it or not! :)
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ecore_desktop.c 19 Sep 2006 02:11:32 -0000 1.34
+++ ecore_desktop.c 21 Sep 2006 12:59:44 -0000 1.35
@@ -736,7 +736,10 @@
int len;
/* Get Home Dir, check for trailing '/', strip it */
- strncpy(home, getenv("HOME"), PATH_MAX);
+ if (getenv("HOME"))
+ strncpy(home, getenv("HOME"), PATH_MAX);
+ else
+ strcpy(home, "/");
len = strlen(home) - 1;
while ((len >= 0) && (home[len] == '/'))
{
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs