diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-10 15:18:40 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-10 15:18:40 +0000 |
| commit | 2b74d45c1b7c8170b8a2abdd86dae8fd2bb239e7 (patch) | |
| tree | 22a6eddad024b50ed5c8bdcd852d77f935bbc7ed /src/backend/snowball/dict_snowball.c | |
| parent | d141e7493bb821300396d155fdea62a0278ddd6a (diff) | |
pg_do_encoding_conversion cannot return NULL (at least not unless the input
is NULL), so remove some useless tests for the case.
Diffstat (limited to 'src/backend/snowball/dict_snowball.c')
| -rw-r--r-- | src/backend/snowball/dict_snowball.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/snowball/dict_snowball.c b/src/backend/snowball/dict_snowball.c index 328ef5a0efe..38742346345 100644 --- a/src/backend/snowball/dict_snowball.c +++ b/src/backend/snowball/dict_snowball.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/snowball/dict_snowball.c,v 1.6 2008/01/01 19:45:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/snowball/dict_snowball.c,v 1.7 2008/11/10 15:18:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -262,9 +262,6 @@ dsnowball_lexize(PG_FUNCTION_ARGS) strlen(txt), GetDatabaseEncoding(), PG_UTF8); - if (recoded == NULL) - elog(ERROR, "encoding conversion failed"); - if (recoded != txt) { pfree(txt); @@ -294,9 +291,6 @@ dsnowball_lexize(PG_FUNCTION_ARGS) strlen(txt), PG_UTF8, GetDatabaseEncoding()); - if (recoded == NULL) - elog(ERROR, "encoding conversion failed"); - if (recoded != txt) { pfree(txt); |
