handle empty fields as if they are NULL. :)

SVN revision: 16942
This commit is contained in:
Carsten Haitzler 2005-09-26 02:06:23 +00:00
parent 6e94a07501
commit e03d8aaf98
1 changed files with 1 additions and 1 deletions

View File

@ -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);