summaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_plpymodule.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-11 11:49:48 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-11 11:49:54 -0400
commit81ba9348d85fdf87e84cc02112933b592845bda2 (patch)
tree3d215c6adf6706de11cc1d11181f01cf54a27df4 /src/pl/plpython/plpy_plpymodule.c
parentee5dbc8173d8f434a467380bfd218ef6f91a8e31 (diff)
Fix missing "volatile" in PLy_output().
Commit 5c3c3cd0a3046339 plastered "volatile" on a bunch of variables in PLy_output(), but removed the one that actually mattered, ie the one on "oldcontext". This allows some versions of clang to generate code in which "oldcontext" has been trashed when control reaches the PG_CATCH block. Per buildfarm member tick.
Diffstat (limited to 'src/pl/plpython/plpy_plpymodule.c')
-rw-r--r--src/pl/plpython/plpy_plpymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpython/plpy_plpymodule.c b/src/pl/plpython/plpy_plpymodule.c
index 16d508943f0..e3322d12bad 100644
--- a/src/pl/plpython/plpy_plpymodule.c
+++ b/src/pl/plpython/plpy_plpymodule.c
@@ -404,7 +404,7 @@ PLy_output(volatile int level, PyObject *self, PyObject *args, PyObject *kw)
char *volatile datatype = NULL;
char *volatile table = NULL;
char *volatile schema = NULL;
- MemoryContext oldcontext ;
+ volatile MemoryContext oldcontext;
PyObject *key, *value;
PyObject *volatile so;
Py_ssize_t pos = 0;