Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e2bc242

Browse files
committed
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
1 parent 5633836 commit e2bc242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/ecpglib/connect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "sqlca.h"
1212

1313
#ifdef HAVE_USELOCALE
14-
locale_t ecpg_clocale;
14+
locale_t ecpg_clocale = (locale_t) 0;
1515
#endif
1616

1717
#ifdef ENABLE_THREAD_SAFETY

0 commit comments

Comments
 (0)