diff options
author | Noah Misch <noah@leadboat.com> | 2022-07-02 21:03:19 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2022-07-02 21:03:23 -0700 |
commit | a4240139fc76fe89bba1a31dc8d7fec08bdfd2ae (patch) | |
tree | a2d97ef58f28a72fbdac48ea73b292cd9a72120c /src/interfaces/ecpg/ecpglib/connect.c | |
parent | 5e0b8f3f4f87739b3187c2d3f7e6e3d2bc6a55d6 (diff) | |
download | postgresql-a4240139fc76fe89bba1a31dc8d7fec08bdfd2ae.tar.gz postgresql-a4240139fc76fe89bba1a31dc8d7fec08bdfd2ae.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/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index 1df578a43ed..8be772d7130 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 |