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
This commit is contained in:
Robert Haas 2014-01-15 10:53:07 -05:00
parent b5763cedde
commit d02c0ddb15
1 changed files with 1 additions and 1 deletions

View File

@ -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;