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

Commit4eaafa0

Browse files
committed
Remove dead code.
Commit13629df changed metaphone() function to return an empty string onempty input, but it left the old error message in place. It's now dead code.Michael Paquier, per Coverity warning.
1 parent5d2f957 commit4eaafa0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

‎contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ metaphone(PG_FUNCTION_ARGS)
280280
errmsg("argument exceeds the maximum length of %d bytes",
281281
MAX_METAPHONE_STRLEN)));
282282

283-
if (!(str_i_len>0))
284-
ereport(ERROR,
285-
(errcode(ERRCODE_ZERO_LENGTH_CHARACTER_STRING),
286-
errmsg("argument is empty string")));
287-
288283
reqlen=PG_GETARG_INT32(1);
289284
if (reqlen>MAX_METAPHONE_STRLEN)
290285
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp