projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21217e
)
Fix parsing universal time zone in mailmbox
author
Ricardo Mones
<ricardo@mones.org>
Mon, 16 Dec 2013 01:21:59 +0000
(
02:21
+0100)
committer
Ricardo Mones
<ricardo@mones.org>
Mon, 16 Dec 2013 01:21:59 +0000
(
02:21
+0100)
Detected thanks to the ‘-Wlogical-op’ gcc flag.
src/plugins/mailmbox/mailimf.c
patch
|
blob
|
history
diff --git
a/src/plugins/mailmbox/mailimf.c
b/src/plugins/mailmbox/mailimf.c
index 03b1c19eacb9870e459fc2778beb949910de4d0a..28374a361066f7189febffa31f9b63ee9a05c613 100644
(file)
--- a/
src/plugins/mailmbox/mailimf.c
+++ b/
src/plugins/mailmbox/mailimf.c
@@
-2665,7
+2665,7
@@
static int mailimf_zone_parse(const char * message, size_t length,
cur_token = * index;
if (cur_token + 1 < length) {
- if ((message[cur_token] == 'U') && (message[cur_token] == 'T')) {
+ if ((message[cur_token] == 'U') && (message[cur_token
+ 1
] == 'T')) {
* result = TRUE;
* index = cur_token + 2;