]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Insignificant change: zero is a valid file descriptor
authorBen Schmidt <none@none>
Sun, 14 Nov 2010 22:31:15 +0000 (09:31 +1100)
committerBen Schmidt <none@none>
Sun, 14 Nov 2010 22:31:15 +0000 (09:31 +1100)
src/prepstdreply.c

index 7d9001e3ce09b914b76dc44e771e2588c50574bf..b8fcd0f78b4a4af260bc310229c79501fae3b2c8 100644 (file)
@@ -423,7 +423,7 @@ char *prepstdreply(const char *listdir, const char *filename, const char *from,
                                if (str != tmp)
                                        len = atol(str);
                                if (mailname && 
-                                  ((mailfd = open(mailname, O_RDONLY)) > 0)){
+                                  ((mailfd = open(mailname, O_RDONLY)) >= 0)){
                                    str = NULL;
                                    i = 0;
                                    while (i < len &&