Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop Modified Files: ecore_desktop_paths.c Log Message: Don't append empty elements. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop_paths.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- ecore_desktop_paths.c 24 Sep 2006 14:29:15 -0000 1.35 +++ ecore_desktop_paths.c 25 Sep 2006 22:55:43 -0000 1.36 @@ -911,7 +911,7 @@ p++; } *pp = '\0'; - ecore_hash_set(result, strdup(buf), strdup(buf)); + if (*buf) ecore_hash_set(result, strdup(buf), strdup(buf)); if (*p) p++; else p = NULL; } @@ -963,7 +963,7 @@ p++; } *pp = '\0'; - ecore_list_append(result, strdup(buf)); + if (*buf) ecore_list_append(result, strdup(buf)); if (*p) p++; else p = NULL; } ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs