summaryrefslogtreecommitdiff
path: root/src/interfaces
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:19 -0700
commite2bc242833da27cd73c279bebfb321a65384808f (patch)
tree34ab1e28730647e76b758667f1f7d7f4c720dce1 /src/interfaces
parent5633836ef306aa4d2be44821b601494054b479d7 (diff)
downloadpostgresql-e2bc242833da27cd73c279bebfb321a65384808f.tar.gz
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/interfaces')
-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 96f99ae072..db0bae1fe0 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