Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfbb092

Browse files
committed
Fix dead code
from commit85b7efaper Coverity report
1 parentccc8194 commitdfbb092

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/utils/adt/like_match.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,14 @@ MatchText(const char *t, int tlen, const char *p, int plen, pg_locale_t locale)
333333
* fails. Otherwise, try again with a longer substring.
334334
*/
335335
if (t1len==0)
336+
{
337+
if (buf)
338+
pfree(buf);
336339
returnLIKE_FALSE;
340+
}
337341
else
338342
NextChar(t1,t1len);
339343
}
340-
if (buf)
341-
pfree(buf);
342-
continue;
343344
}
344345
elseif (GETCHAR(*p,locale)!=GETCHAR(*t,locale))
345346
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp