Fix locale pointer use in WIN32 code path
authorPeter Eisentraut
Sat, 25 Mar 2017 04:38:12 +0000 (00:38 -0400)
committerPeter Eisentraut
Sat, 25 Mar 2017 04:38:12 +0000 (00:38 -0400)
Author: David Rowley 

src/backend/utils/adt/varlena.c

index aa556aa5deb4663ab0d183bc2da7b6195475d32f..c74c890b9b5530aab83688be6f35c16d874dfa08 100644 (file)
@@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
            errno = 0;
 #ifdef HAVE_LOCALE_T
            if (mylocale)
-               result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale);
+               result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale->info.lt);
            else
 #endif
                result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);