X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=fd1de3b957389b3cf39c04727a7d2595646143bb;hp=333e945f09d01abfe225bc589190dd8496506314;hb=f6cb896bc4c0bafca1acd5ac3fb45169cd893e29;hpb=932e1c165cdb5dff769e4d290525f4f6b2f5ac81 diff --git a/notmuch-reply.c b/notmuch-reply.c index 333e945f..fd1de3b9 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); }