projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafdc44
)
Fix bug #3652 “warning: ordered comparison of pointer…”
author
Ricardo Mones
<ricardo@mones.org>
Thu, 16 Jun 2016 14:28:54 +0000
(16:28 +0200)
committer
Ricardo Mones
<ricardo@mones.org>
Thu, 16 Jun 2016 14:28:54 +0000
(16:28 +0200)
src/common/utils.c
patch
|
blob
|
history
diff --git
a/src/common/utils.c
b/src/common/utils.c
index eb41d5cf6c2b1959b547d44f2caad5524a18e203..ca75a33ee791f614b9acb7e27349f463467f9b87 100644
(file)
--- 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:")))