forked from enlightenment/enlightenment
handle empty fields as if they are NULL. :)
SVN revision: 16942
This commit is contained in:
parent
6e94a07501
commit
e03d8aaf98
|
@ -140,7 +140,7 @@ e_app_raw_new(void)
|
||||||
static void
|
static void
|
||||||
_e_app_cache_copy(E_App_Cache *ac, E_App *a)
|
_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(name);
|
||||||
IF_DUP(generic);
|
IF_DUP(generic);
|
||||||
IF_DUP(comment);
|
IF_DUP(comment);
|
||||||
|
|
Loading…
Reference in New Issue