about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index cc4d1b5..b33ee11 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1591,7 +1591,7 @@ add_mime_type(struct settings *s, char *line)
 
 	/* XXX this could be smarter */
 
-	if (line == NULL && strlen(line) == 0) {
+	if (line == NULL || strlen(line) == 0) {
 		show_oops(NULL, "add_mime_type invalid parameters");
 		return (1);
 	}