summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xmakefile4
-rw-r--r--neols.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/makefile b/makefile
index f8c4d00..48fb2e5 100755
--- a/makefile
+++ b/makefile
@@ -2,11 +2,11 @@ CC = cc
 CFLAGS = -g -Wall
 LDFLAGS = -static
 
-all: files drawn/monthly composed photographed/monthly
+all: files drawn/monthly composed photographed/monthly neols
 
 .c:
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 clean:
-	rm -f files drawn/monthly composed photographed/monthly
+	rm -f files drawn/monthly composed photographed/monthly neols
 	rm -f files.html files.html.bup drawn/*.html drawn/*.html.bup composed.html photographed/*.html photographed/*.html.bup
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';