null check

SVN revision: 74807
This commit is contained in:
Mike Blumenkrantz 2012-08-02 15:15:15 +00:00
parent 65433e79ee
commit 004b6fe89c
1 changed files with 3 additions and 2 deletions

View File

@ -1446,7 +1446,7 @@ _e_fwin_changed(void *data,
E_Fwin_Page *page;
E_Fm2_Config *cfg;
Efreet_Desktop *ef;
const char *dev;
const char *dev, *path;
char buf[PATH_MAX];
page = data;
@ -1456,7 +1456,8 @@ _e_fwin_changed(void *data,
cfg = e_fm2_config_get(page->fm_obj);
e_fm2_path_get(page->fm_obj, &dev, NULL);
e_user_dir_concat_static(buf, "fileman/favorites");
if ((dev && (!strcmp(dev, "favorites"))) || (!strcmp(buf, e_fm2_real_path_get(page->fm_obj))))
path = e_fm2_real_path_get(page->fm_obj);
if ((dev && (!strcmp(dev, "favorites"))) || (path && (!strcmp(buf, path))))
cfg->view.link_drop = 1;
else
cfg->view.link_drop = 0;