Content-Length: 261343 | pFad | http://github.com/postgrespro/postgres/commit/4eaafa045362298adfe61fdd83b47b22211c75d1

B7 Remove dead code. · postgrespro/postgres@4eaafa0 · GitHub
Skip to content

Commit 4eaafa0

Browse files
committed
Remove dead code.
Commit 13629df changed metaphone() function to return an empty string on empty input, but it left the old error message in place. It's now dead code. Michael Paquier, per Coverity warning.
1 parent 5d2f957 commit 4eaafa0

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4eaafa045362298adfe61fdd83b47b22211c75d1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy