From e85b3f192e0a0a989e8900d096c45552b6ce6b9b Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 21 Nov 2015 18:28:23 +0300 Subject: [PATCH] (extfs_find_entry_int): fix comparisons. Signed-off-by: Andrew Borodin --- src/vfs/extfs/extfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vfs/extfs/extfs.c b/src/vfs/extfs/extfs.c index 52458c6ca..c5f8a2e7e 100644 --- a/src/vfs/extfs/extfs.c +++ b/src/vfs/extfs/extfs.c @@ -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)