SVN revision: 33807
This commit is contained in:
Miculcy Brian 2008-02-22 00:59:42 +00:00
parent 93db2e5f8e
commit d19728bcb2
1 changed files with 2 additions and 2 deletions

View File

@ -2280,7 +2280,7 @@ _e_fm2_dev_path_map(const char *dev, const char *path)
s = (char *)e_user_homedir_get();
PRT("%s%s", s, path);
}
else if (dev && (dev[0] == '/'))
else if ((dev) && (dev[0] == '/'))
{
/* dev is a full path - consider it a mountpoint device on its own */
PRT("%s%s", dev, path);
@ -2344,7 +2344,7 @@ _e_fm2_dev_path_map(const char *dev, const char *path)
/* FIXME: add code for finding nfs shares, smb shares etc. */
/* maybe make part of the device mappings config? */
if (!strlen (buf)) snprintf(buf, sizeof(buf), "%s", path);
if (!strlen(buf)) snprintf(buf, sizeof(buf), "%s", path);
/* strip out excess multiple slashes */
s = buf;