This is an automated email from the ASF dual-hosted git repository.

reshke pushed a commit to branch address_1566_p2
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 7757668a0a7119dd07aaeecd8d69d9a6de721b8b
Author: Noah Misch <[email protected]>
AuthorDate: Sat Jul 2 21:03:19 2022 -0700

    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/[email protected]
---
 src/interfaces/ecpg/ecpglib/connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/interfaces/ecpg/ecpglib/connect.c 
b/src/interfaces/ecpg/ecpglib/connect.c
index 8fb7b260868..de3d11dc15e 100644
--- a/src/interfaces/ecpg/ecpglib/connect.c
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -16,7 +16,7 @@ locale_t      ecpg_clocale = (locale_t) 0;
 #endif
 
 #ifdef HAVE_USELOCALE
-locale_t       ecpg_clocale;
+locale_t       ecpg_clocale = (locale_t) 0;
 #endif
 
 #ifdef ENABLE_THREAD_SAFETY


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to