mirror of https://github.com/MidnightCommander/mc
(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);
|
name_end = name + strlen (name);
|
||||||
|
|
||||||
q = strchr (p, PATH_SEP);
|
q = strchr (p, PATH_SEP);
|
||||||
if (q == '\0')
|
if (q == NULL)
|
||||||
q = strchr (p, '\0');
|
q = strchr (p, '\0');
|
||||||
|
|
||||||
while ((pent != NULL) && (c != '\0') && (*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;
|
*q = c;
|
||||||
p = q + 1;
|
p = q + 1;
|
||||||
q = strchr (p, PATH_SEP);
|
q = strchr (p, PATH_SEP);
|
||||||
if (q == '\0')
|
if (q == NULL)
|
||||||
q = strchr (p, '\0');
|
q = strchr (p, '\0');
|
||||||
}
|
}
|
||||||
if (pent == NULL)
|
if (pent == NULL)
|
||||||
|
|
Loading…
Reference in New Issue