mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
smbfs: fix pointer comparision.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
58d601c54b
commit
c47f0c4bba
@ -1349,7 +1349,7 @@ smbfs_get_path (smbfs_connection ** sc, const vfs_path_t * vpath)
|
||||
|
||||
DEBUG (3, ("smbfs_get_path(%s)\n", path));
|
||||
|
||||
if (path_element->class != &vfs_smbfs_ops)
|
||||
if (path_element->class != vfs_smbfs_ops)
|
||||
return NULL;
|
||||
|
||||
while (*path == '/') /* '/' leading server name */
|
||||
@ -1749,7 +1749,7 @@ smbfs_stat (const vfs_path_t * vpath, struct stat *buf)
|
||||
|
||||
/* check if stating server */
|
||||
p = path_element->path;
|
||||
if (path_element->class != &vfs_smbfs_ops)
|
||||
if (path_element->class != vfs_smbfs_ops)
|
||||
return -1;
|
||||
|
||||
while (*p == '/') /* '/' leading server name */
|
||||
@ -1985,7 +1985,7 @@ smbfs_forget (const vfs_path_t * vpath)
|
||||
const char *path;
|
||||
|
||||
path_element = vfs_path_get_by_index (vpath, -1);
|
||||
if (path_element->class != &vfs_smbfs_ops)
|
||||
if (path_element->class != vfs_smbfs_ops)
|
||||
return;
|
||||
|
||||
path = path_element->path;
|
||||
|
Loading…
Reference in New Issue
Block a user