mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
(extfs_find_entry_int): fix comparisons.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
a3337615f6
commit
e85b3f192e
@ -255,7 +255,7 @@ extfs_find_entry_int (struct entry *dir, const char *name, GSList * list,
|
||||
name_end = name + strlen (name);
|
||||
|
||||
q = strchr (p, PATH_SEP);
|
||||
if (q == '\0')
|
||||
if (q == NULL)
|
||||
q = strchr (p, '\0');
|
||||
|
||||
while ((pent != NULL) && (c != '\0') && (*p != '\0'))
|
||||
@ -310,7 +310,7 @@ extfs_find_entry_int (struct entry *dir, const char *name, GSList * list,
|
||||
*q = c;
|
||||
p = q + 1;
|
||||
q = strchr (p, PATH_SEP);
|
||||
if (q == '\0')
|
||||
if (q == NULL)
|
||||
q = strchr (p, '\0');
|
||||
}
|
||||
if (pent == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user