talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 804af9b07981803eda6596ba6e62b8d05979d482
parent aafdc441c2f5ad81fe5a65cb5a63a97977581c2c
Author: Ricardo Mones <ricardo@mones.org>
Date:   Thu, 16 Jun 2016 16:28:54 +0200

Fix bug #3652 “warning: ordered comparison of pointer…”

Diffstat:
Msrc/common/utils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/utils.c b/src/common/utils.c @@ -4741,7 +4741,7 @@ gboolean file_is_email (const gchar *filename) if ((fp = g_fopen(filename, "rb")) == NULL) return FALSE; while (i < 60 && score < 3 - && fgets(buffer, sizeof (buffer), fp) > 0) { + && fgets(buffer, sizeof (buffer), fp) != NULL) { if (!strncmp(buffer, "From:", strlen("From:"))) score++; else if (!strncmp(buffer, "Date:", strlen("Date:")))