Move null check to equals function

SVN revision: 17029
This commit is contained in:
sebastid 2005-09-28 11:09:33 +00:00 committed by sebastid
parent 6c9fe9a36a
commit 6d4a242889
2 changed files with 2 additions and 1 deletions

View File

@ -254,6 +254,7 @@ e_app_is_parent(E_App *parent, E_App *app)
int
e_app_equals(E_App *app1, E_App *app2)
{
if ((!app1) || (!app2)) return 0;
return ((app1 == app2) || (app1->orig == app2) ||
(app1 == app2->orig) || (app1->orig == app2->orig));
}

View File

@ -7176,7 +7176,7 @@ _e_border_app_change(void *data, E_App *app, E_App_Change change)
E_Border *bd;
bd = l->data;
if ((bd->app) && (e_app_equals(bd->app, app)))
if (e_app_equals(bd->app, app))
{
bd->changes.icon = 1;
bd->changed = 1;