summaryrefslogtreecommitdiff
path: root/neols.c
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2023-06-30 10:24:14 -0700
committerkaa <kaa@disroot.org>2023-06-30 10:24:14 -0700
commit94e0fbe794455d3e61ffcb5b2a34918ddd12949b (patch)
tree20fced40766b3445a8020dc69c60055c26e981c2 /neols.c
parent67904a09bab959fdb27f7d237275097840b19f7b (diff)
Compare strstr’s return value against NULL instead of 0.
Diffstat (limited to 'neols.c')
-rw-r--r--neols.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/neols.c b/neols.c
index 06dc66e..a288fee 100644
--- a/neols.c
+++ b/neols.c
@@ -128,10 +128,10 @@ main(int argc, char **argv)
path = line;
stripquote(path + strlen("path") + PREFIX);
} else if (line[8] == 's') {
- if (strstr(line, "false") == 0)
- is_directory = 1;
- else
+ if (strstr(line, "false") != NULL)
is_directory = 0;
+ else
+ is_directory = 1;
free(line);
} else if (line[8] == 'i') {
line[len - 1] = '\0';