diff options
| author | Robert Haas | 2014-01-15 15:53:07 +0000 |
|---|---|---|
| committer | Robert Haas | 2014-01-15 16:00:50 +0000 |
| commit | d02c0ddb152978980ea17f9214c7ac734e4d6d8f (patch) | |
| tree | 8fbc3ba9ee08dad9c19493f5ab41e741f602b211 /src/backend/access | |
| parent | b5763cedde2541a6629f64cccf77e37b21348714 (diff) | |
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
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/heap/tuptoaster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/heap/tuptoaster.c b/src/backend/access/heap/tuptoaster.c index 633717a446d..97c9f238a7b 100644 --- a/src/backend/access/heap/tuptoaster.c +++ b/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; |
