]> granicus.if.org Git - postgresql/commit
Fix volatile vs. pointer confusion
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 14 Mar 2019 07:25:25 +0000 (08:25 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 15 Mar 2019 07:39:12 +0000 (08:39 +0100)
commit361cabb11d36afaf466d76e1bda1778501137dcf
treec96d21ac9f9d947c698de2d4ad32bfd90350dcd7
parent71288846efc89dc2fdfbb08e2807340ed6f8cd45
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
contrib/hstore_plpython/hstore_plpython.c