[Commits] [SCM] claws branch, master, updated. 3.13.2-154-g804af9b
mones at claws-mail.org
mones at claws-mail.org
Thu Jun 16 16:29:51 CEST 2016
The branch, master has been updated
via 804af9b07981803eda6596ba6e62b8d05979d482 (commit)
from aafdc441c2f5ad81fe5a65cb5a63a97977581c2c (commit)
Summary of changes:
src/common/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 804af9b07981803eda6596ba6e62b8d05979d482
Author: Ricardo Mones <ricardo at mones.org>
Date: Thu Jun 16 16:28:54 2016 +0200
Fix bug #3652 “warning: ordered comparison of pointer…”
diff --git a/src/common/utils.c b/src/common/utils.c
index eb41d5c..ca75a33 100644
--- 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:")))
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list