Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-3
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)