mlmmj

changeset af2d036b7d0c

Insignificant change: zero is a valid file descriptor
author Ben Schmidt
date Mon, 15 Nov 2010 09:31:15 +1100
parents 5f038f36f66f
children 93d445688ebe
files src/prepstdreply.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/prepstdreply.c	Fri Nov 12 02:30:21 2010 +1100
     1.2 +++ b/src/prepstdreply.c	Mon Nov 15 09:31:15 2010 +1100
     1.3 @@ -423,7 +423,7 @@
     1.4  				if (str != tmp)
     1.5  					len = atol(str);
     1.6  				if (mailname && 
     1.7 -		     		   ((mailfd = open(mailname, O_RDONLY)) > 0)){
     1.8 +		     		   ((mailfd = open(mailname, O_RDONLY)) >= 0)){
     1.9  		     		    str = NULL;
    1.10  				    i = 0;
    1.11  				    while (i < len &&