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

Commit20afa04

Browse files
committed
Fix for pointer arithmetic.
1 parent6451b04 commit20afa04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/cache/catcache.c

Lines changed: 2 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/utils/cache/catcache.c,v 1.9 1997/08/2614:05:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.10 1997/08/2619:24:36 momjian Exp $
1111
*
1212
* Notes:
1313
*XXX This needs to use exception.h to handle recovery when
@@ -665,7 +665,7 @@ InitSysCache(char *relname,
665665
*/
666666
Dllist*cache_begin=malloc((NCCBUCK+1)*sizeof(Dllist));
667667
for (i=0;i <=NCCBUCK;++i) {
668-
cp->cc_cache[i]=cache_begin[i];
668+
cp->cc_cache[i]=&cache_begin[i];
669669
cp->cc_cache[i]->dll_head=0;
670670
cp->cc_cache[i]->dll_tail=0;
671671
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp