summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-07-04 13:27:49 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-07-04 13:27:49 +0000
commit154d55bba27835de7a914ba2422bfcd28443ae84 (patch)
treec93411f6b75dfdc7440fbd0222e20348697cc373 /tests/tprintf.c
parent16e22a17969895852ad508b17f7c1d5c1a70d88b (diff)
downloadmpfr-154d55bba27835de7a914ba2422bfcd28443ae84.tar.gz
[tests/tprintf.c] More test_locale() cleanup.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12879 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index 504ada49e..f6047685f 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -490,12 +490,13 @@ test_locale (void)
"en_US.utf8"
};
int i;
- char *s = NULL;
mpfr_t x;
int count;
for (i = 0; i < numberof(tab_locale); i++)
{
+ char *s;
+
s = setlocale (LC_ALL, tab_locale[i]);
if (s != NULL && MPFR_THOUSANDS_SEPARATOR == ',')