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>
(cherry picked from commit 107f58d517)
This commit is contained in:
Aneesh Kumar K.V 2010-04-27 14:57:25 +02:00 committed by Carl Worth
parent 467f819827
commit 7825376b3f

View file

@ -317,7 +317,7 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message
char *domain=NULL; char *domain=NULL;
char *tld=NULL; char *tld=NULL;
const char *delim=". \t"; const char *delim=". \t";
size_t i,other_len; size_t i,j,other_len;
const char *to_headers[] = {"Envelope-to", "X-Original-To"}; 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); free(tohdr);
return primary; return primary;
} }
for (i = 0; i < other_len; i++) for (j = 0; j < other_len; j++)
if (strcasestr (tohdr, other[i])) { if (strcasestr (tohdr, other[j])) {
free(tohdr); free(tohdr);
return other[i]; return other[j];
} }
free(tohdr); free(tohdr);
} }