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

Commit426cafc

Browse files
committed
Suppress compiler warning about potentially uninitialized variable.
Maybe some compilers are smart enough to not complain about the previouscoding ... but mine isn't.
1 parentcc81d99 commit426cafc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎src/backend/commands/typecmds.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ AlterDomainValidateConstraint(List *names, char *constrName)
20462046
Relationconrel;
20472047
HeapTupletup;
20482048
Form_pg_typetypTup;
2049-
Form_pg_constraintcon;
2049+
Form_pg_constraintcon=NULL;
20502050
Form_pg_constraintcopy_con;
20512051
char*conbin;
20522052
SysScanDescscan;
@@ -2094,13 +2094,10 @@ AlterDomainValidateConstraint(List *names, char *constrName)
20942094
}
20952095

20962096
if (!found)
2097-
{
2098-
con=NULL;/* keep compiler quiet */
20992097
ereport(ERROR,
21002098
(errcode(ERRCODE_UNDEFINED_OBJECT),
21012099
errmsg("constraint \"%s\" of domain \"%s\" does not exist",
21022100
constrName,NameStr(con->conname))));
2103-
}
21042101

21052102
if (con->contype!=CONSTRAINT_CHECK)
21062103
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp