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

Commit141e878

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 thisbefore invoking pg_mbcliplen().Per Coverity static analysis performed by EnterpriseDB.
1 parent638feae commit141e878

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)

[8]ページ先頭

©2009-2025 Movatter.jp