summaryrefslogtreecommitdiff
path: root/m4/duplocale.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/duplocale.m4')
-rw-r--r--m4/duplocale.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/duplocale.m4 b/m4/duplocale.m4
index d45891d4f..fcf9d3980 100644
--- a/m4/duplocale.m4
+++ b/m4/duplocale.m4
@@ -1,5 +1,5 @@
-# duplocale.m4 serial 7
-dnl Copyright (C) 2009-2014 Free Software Foundation, Inc.
+# duplocale.m4 serial 8
+dnl Copyright (C) 2009-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -25,8 +25,10 @@ AC_DEFUN([gl_FUNC_DUPLOCALE],
#endif
int main ()
{
- if (duplocale (LC_GLOBAL_LOCALE) == (locale_t)0)
+ locale_t loc = duplocale (LC_GLOBAL_LOCALE);
+ if (!loc)
return 1;
+ freelocale (loc);
return 0;
}]])],
[gl_cv_func_duplocale_works=yes],