]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix previous commit's ecpg_clocale for ppc Darwin.
authorNoah Misch <noah@leadboat.com>
Sun, 3 Jul 2022 04:03:19 +0000 (21:03 -0700)
committerNoah Misch <noah@leadboat.com>
Sun, 3 Jul 2022 04:03:23 +0000 (21:03 -0700)
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

src/interfaces/ecpg/ecpglib/connect.c

index 1df578a43edcad144006314c53065e79852b8f72..8be772d713022231296e31ab645f40c1070369b7 100644 (file)
@@ -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