Commit 6e932d0
Fix assertion on dereferenced object
Commit 27cc7cd accidentally placed the assertion ensuring
that the pointer isn't NULL after it had already been accessed.
Fix by moving the pointer dereferencing to after the assertion.
Backpatch to all supported branches.
Author: Dmitry Koval <d.koval@postgrespro.ru>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/1618848d-cdc7-414b-9c03-08cf4bef4408@postgrespro.ru
Backpatch-through: 131 parent 2f57965 commit 6e932d0
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
2646 | | - | |
| 2646 | + | |
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
| 2653 | + | |
| 2654 | + | |
2653 | 2655 | | |
2654 | 2656 | | |
2655 | 2657 | | |
| |||
0 commit comments