File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,11 @@ precision palloc(size)
91
91
register posit size ;
92
92
{
93
93
register precision w ;
94
- register cacheType * kludge = pcache + size ; /* for shitty compilers */
94
+ register cacheType * kludge ; /* for shitty compilers */
95
95
96
96
#if !(defined(NOMEMOPT ) || defined(BWGC ))
97
- if (size < CACHESIZE && (w = kludge -> next ) != pUndef ) {
97
+ if (size < CACHESIZE && (kludge = pcache + size ) &&
98
+ (w = kludge -> next ) != pUndef ) {
98
99
kludge -> next = ((cacheType * ) w )-> next ;
99
100
-- kludge -> count ;
100
101
} else {
@@ -135,9 +136,9 @@ int pfree(u)
135
136
136
137
size = u -> alloc ;
137
138
138
- kludge = pcache + size ;
139
139
#if !(defined(NOMEMOPT ) || defined(BWGC ))
140
- if (size < CACHESIZE && kludge -> count < CACHELIMIT ) {
140
+ if (size < CACHESIZE && (kludge = pcache + size ) &&
141
+ kludge -> count < CACHELIMIT ) {
141
142
((cacheType * ) u )-> next = kludge -> next ;
142
143
kludge -> next = u ;
143
144
kludge -> count ++ ;
You can’t perform that action at this time.
0 commit comments