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

Commiteab8ee9

Browse files
committed
Fix coredump in copyCommentStmt().
1 parent339a5bb commiteab8ee9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/nodes/copyfuncs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Portions Copyright (c) 1994, Regents of the University of California
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.121 2000/09/12 21:06:49 tgl Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.122 2000/09/20 15:28:01 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -1920,7 +1920,8 @@ _copyCommentStmt(CommentStmt *from)
19201920

19211921
newnode->objtype=from->objtype;
19221922
newnode->objname=pstrdup(from->objname);
1923-
newnode->objproperty=pstrdup(from->objproperty);
1923+
if (from->objproperty)
1924+
newnode->objproperty=pstrdup(from->objproperty);
19241925
Node_Copy(from,newnode,objlist);
19251926
newnode->comment=pstrdup(from->comment);
19261927

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp