From e03d8aaf98ffe301c6b756b699db043d0d64ade1 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 26 Sep 2005 02:06:23 +0000 Subject: [PATCH] handle empty fields as if they are NULL. :) SVN revision: 16942 --- src/bin/e_apps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index ccea92584..2894acf85 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -140,7 +140,7 @@ e_app_raw_new(void) 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);