aboutsummaryrefslogtreecommitdiff
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:23 -0700
commit97b005f3fb1b32581493e0e6e7fca028d9896207 (patch)
treea6c57389c2d37a49693fc9a852c6ba58709605b3
parentb4d7e92bd5354c78c0d0405d08d85b73d20f50f7 (diff)
downloadpostgresql-97b005f3fb1b32581493e0e6e7fca028d9896207.tar.gz
postgresql-97b005f3fb1b32581493e0e6e7fca028d9896207.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
-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 f7e6ed70595..c673a9b976d 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