aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2022-07-02 21:03:19 -0700
committerNoah Misch <noah@leadboat.com>2022-07-02 21:03:22 -0700
commit463a841d7407dbc96cc1c39ca99ebe9c8bdd3244 (patch)
tree191ed95332184806113a8e8ac2748bdaebf594d1 /src
parent5b94e2bd4d5430f5ea4e965a32727a6006972a55 (diff)
downloadpostgresql-463a841d7407dbc96cc1c39ca99ebe9c8bdd3244.tar.gz
postgresql-463a841d7407dbc96cc1c39ca99ebe9c8bdd3244.zip
Fix previous commit's ecpg_clocale for ppc Darwin.
Per buildfarm member prairiedog, this platform rejects uninitialized global variables in shared libraries. Back-patch to v10, like the addition of the variable. Reviewed by Tom Lane. Discussion: https://postgr.es/m/20220703030619.GB2378460@rfd.leadboat.com
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c
index 262d5042f92..056940cb252 100644
--- a/src/interfaces/ecpg/ecpglib/connect.c
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -11,7 +11,7 @@
#include "sqlca.h"
#ifdef HAVE_USELOCALE
-locale_t ecpg_clocale;
+locale_t ecpg_clocale = (locale_t) 0;
#endif
#ifdef ENABLE_THREAD_SAFETY