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
107f58d517e733c53e9d669457db34622337931d)
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"};
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);
}