Fix missing parentheses resulting in wrong order of dereference.

This could result in referencing uninitialized memory.

Michael Paquier, in response to a complaint from Andres Freund
pull/6/head
Robert Haas 12 years ago
parent b5763cedde
commit d02c0ddb15
  1. 2
      src/backend/access/heap/tuptoaster.c

@ -2156,7 +2156,7 @@ toast_open_indexes(Relation toastrel,
/* Fetch the first valid index in list */
for (i = 0; i < *num_indexes; i++)
{
Relation toastidx = *toastidxs[i];
Relation toastidx = (*toastidxs)[i];
if (toastidx->rd_index->indisvalid)
{
res = i;

Loading…
Cancel
Save