ares_striendstr: fix so non-NULL return can happen

This looks to have been broken since it was first introduced in 2005 in
commit aba0b775ea ("Added ares_getnameinfo which mimics the
getnameinfo API")
This commit is contained in:
David Drysdale 2015-12-24 13:42:43 +00:00
parent 74ba881295
commit de04975c48
1 changed files with 1 additions and 3 deletions

View File

@ -417,7 +417,5 @@ static char *ares_striendstr(const char *s1, const char *s2)
c2++;
}
}
if (c2 == c1 && c2 == NULL)
return (char *)c1_begin;
return NULL;
return (char *)c1_begin;
}