]> Savannah Git Hosting - gnulib.git/commitdiff
localename: Fix use of uninitialized shell variable.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Dec 2018 22:27:49 +0000 (23:27 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Dec 2018 22:27:49 +0000 (23:27 +0100)
* m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
gt_cv_locale_solaris114 always before use. Remove assignment without
effect.

ChangeLog
m4/intl-thread-locale.m4

index 61b54dae3707980d6cf6d04d1dc5ca3aa751be0a..35c54129bffb5b3f124fae56e2cbb4809a03ba38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-12-15  Bruno Haible  <bruno@clisp.org>
+
+       localename: Fix use of uninitialized shell variable.
+       * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
+       gt_cv_locale_solaris114 always before use. Remove assignment without
+       effect.
+
 2018-12-15  Bruno Haible  <bruno@clisp.org>
 
        dfa tests: Avoid test failure on Alpine Linux.
index 6f5ea24d7bbebbcbe7f7b040687e7e8998b19b55..d7ad0ac569248c79349bac00b98b00b776087952 100644 (file)
@@ -1,4 +1,4 @@
-# intl-thread-locale.m4 serial 1
+# intl-thread-locale.m4 serial 2
 dnl Copyright (C) 2015-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,9 +48,10 @@ AC_DEFUN([gt_INTL_THREAD_LOCALE_NAME],
          *) gt_cv_locale_solaris114=no ;;
        esac
       ])
+  else
+    gt_cv_locale_solaris114=no
   fi
   if test $gt_cv_locale_solaris114 = yes; then
-    gt_nameless_locales=yes
     AC_DEFINE([HAVE_SOLARIS114_LOCALES], [1],
       [Define if the locale_t type is as on Solaris 11.4.])
   fi