Fix volatile vs. pointer confusion

Peter Eisentraut <peter@eisentraut.org>

Commit: a1e9508b964155a81ec9a8e6e12be76796d47097
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-03-15T07:37:48Z
Releases: 11.3
Fix volatile vs. pointer confusion

Variables used after a longjmp() need to be declared volatile.  In
case of a pointer, it's the pointer itself that needs to be declared
volatile, not the pointed-to value.  So we need

    PyObject *volatile items;

instead of

    volatile PyObject *items;  /* wrong */

Discussion: https://www.postgresql.org/message-id/flat/f747368d-9e1a-c46a-ac76-3c27da32e8e4%402ndquadrant.com

Files

Discussion