]> granicus.if.org Git - nethack/commitdiff
Fix syntax error
authorPasi Kallinen <paxed@alt.org>
Sat, 19 Aug 2017 10:40:47 +0000 (13:40 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 19 Aug 2017 10:40:47 +0000 (13:40 +0300)
src/files.c

index b2553995419a746a825bc8d7f1d4f3a92eb99b14..49de94a36139161d6f415fe34bafd4440c28163c 100644 (file)
@@ -3111,7 +3111,7 @@ const char *dir UNUSED_if_not_OS2_CODEVIEW;
 #else
         fd = open(fq_record, O_CREAT | O_RDWR, S_IREAD | S_IWRITE);
 #endif
-        if (fd = < 0) {
+        if (fd <= 0) {
             raw_printf("Warning: cannot write record '%s'", tmp);
             wait_synch();
         } else {