diff src/prepstdreply.c @ 778:af2d036b7d0c

Insignificant change: zero is a valid file descriptor
author Ben Schmidt
date Mon, 15 Nov 2010 09:31:15 +1100
parents ecb991e41a4c
children 6f8df4842d91
line wrap: on
line diff
--- a/src/prepstdreply.c	Fri Nov 12 02:30:21 2010 +1100
+++ b/src/prepstdreply.c	Mon Nov 15 09:31:15 2010 +1100
@@ -423,7 +423,7 @@
 				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 &&