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

Commit7266928

Browse files
committed
Fixed realloc for increasing tempRels list.
1 parentae753b8 commit7266928

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/catalog/heap.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.8 1996/11/10 02:59:25 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.9 1996/12/31 06:58:27 vadim Exp $
1111
*
1212
* INTERFACE ROUTINES
1313
*heap_creatr()- Create an uncataloged heap relation
@@ -1392,7 +1392,8 @@ AddToTempRelList(Relation r)
13921392

13931393
if (tempRels->num==tempRels->size) {
13941394
tempRels->size+=TEMP_REL_LIST_SIZE;
1395-
tempRels->rels=realloc(tempRels->rels,tempRels->size);
1395+
tempRels->rels=realloc(tempRels->rels,
1396+
sizeof(Relation)*tempRels->size);
13961397
}
13971398
tempRels->rels[tempRels->num]=r;
13981399
tempRels->num++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp