(extfs_find_entry_int): fix comparisons.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2015-11-21 18:28:23 +03:00
parent a3337615f6
commit e85b3f192e
1 changed files with 2 additions and 2 deletions

View File

@ -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)