Mercurial > hg > mlmmj
comparison 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 |
comparison
equal
deleted
inserted
replaced
777:5f038f36f66f | 778:af2d036b7d0c |
---|---|
421 *tmp = '\0'; | 421 *tmp = '\0'; |
422 len = 100; | 422 len = 100; |
423 if (str != tmp) | 423 if (str != tmp) |
424 len = atol(str); | 424 len = atol(str); |
425 if (mailname && | 425 if (mailname && |
426 ((mailfd = open(mailname, O_RDONLY)) > 0)){ | 426 ((mailfd = open(mailname, O_RDONLY)) >= 0)){ |
427 str = NULL; | 427 str = NULL; |
428 i = 0; | 428 i = 0; |
429 while (i < len && | 429 while (i < len && |
430 (str = mygetline(mailfd))) { | 430 (str = mygetline(mailfd))) { |
431 tmp = str; | 431 tmp = str; |