Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c 


Log Message:


handle empty fields as if they are NULL. :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -3 -r1.69 -r1.70
--- e_apps.c    25 Sep 2005 04:58:18 -0000      1.69
+++ e_apps.c    26 Sep 2005 02:06:23 -0000      1.70
@@ -140,7 +140,7 @@
 static void
 _e_app_cache_copy(E_App_Cache *ac, E_App *a)
 {
-#define IF_DUP(x) if (ac->x) a->x = strdup(ac->x)
+#define IF_DUP(x) if ((ac->x) && (strlen(ac->x) > 0)) a->x = strdup(ac->x)
    IF_DUP(name);
    IF_DUP(generic);
    IF_DUP(comment);




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to