Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 20afa04

Browse files
committed
Fix for pointer arithmetic.
1 parent 6451b04 commit 20afa04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/cache/catcache.c

+2-2
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/26 14:05:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.10 1997/08/26 19: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)