Skip to content

Commit 141e878

Browse files
author
Neil Conway
committed
Trivial dead code removal: in makeObjectName(), name1 must be non-NULL
(due to the preceding strlen(), for example), so we needn't recheck this before invoking pg_mbcliplen(). Per Coverity static analysis performed by EnterpriseDB.
1 parent 638feae commit 141e878

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/commands/indexcmds.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.131 2005/05/06 17:24:53 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.132 2005/06/21 00:35:05 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -760,8 +760,7 @@ makeObjectName(const char *name1, const char *name2, const char *label)
760760
name2chars--;
761761
}
762762

763-
if (name1)
764-
name1chars = pg_mbcliplen(name1, name1chars, name1chars);
763+
name1chars = pg_mbcliplen(name1, name1chars, name1chars);
765764
if (name2)
766765
name2chars = pg_mbcliplen(name2, name2chars, name2chars);
767766

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy