diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-04-27 14:57:25 +0200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-27 08:09:38 -0700 |
commit | 107f58d517e733c53e9d669457db34622337931d (patch) | |
tree | 485c5de46023bb899752816ca96149771c68215d /notmuch-reply.c | |
parent | 3d64993586af7286c6b0fc56bdcef19ae7813c80 (diff) |
Rename already used counter var i
i is already used in a for loop at this point, so using i here again
broke notmuch-reply (it would just hang). Use j instead of i here.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r-- | notmuch-reply.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c index 333e945..fd1de3b 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -317,7 +317,7 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message char *domain=NULL; char *tld=NULL; const char *delim=". \t"; - size_t i,other_len; + size_t i,j,other_len; const char *to_headers[] = {"Envelope-to", "X-Original-To"}; @@ -348,10 +348,10 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message free(tohdr); return primary; } - for (i = 0; i < other_len; i++) - if (strcasestr (tohdr, other[i])) { + for (j = 0; j < other_len; j++) + if (strcasestr (tohdr, other[j])) { free(tohdr); - return other[i]; + return other[j]; } free(tohdr); } |