Fix dead code

from commit 85b7efa1cd

per Coverity report
pull/189/head
Peter Eisentraut 1 year ago
parent ccc8194e42
commit dfbb092cff
  1. 7
      src/backend/utils/adt/like_match.c

@ -333,13 +333,14 @@ MatchText(const char *t, int tlen, const char *p, int plen, pg_locale_t locale)
* fails. Otherwise, try again with a longer substring.
*/
if (t1len == 0)
{
if (buf)
pfree(buf);
return LIKE_FALSE;
}
else
NextChar(t1, t1len);
}
if (buf)
pfree(buf);
continue;
}
else if (GETCHAR(*p, locale) != GETCHAR(*t, locale))
{

Loading…
Cancel
Save