summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tsprintf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c
index e9c1f1422..737ff86db 100644
--- a/tests/tsprintf.c
+++ b/tests/tsprintf.c
@@ -1273,13 +1273,12 @@ test20161214 (void)
int
main (int argc, char **argv)
{
- char *locale;
tests_start_mpfr ();
#if defined(HAVE_LOCALE_H) && defined(HAVE_SETLOCALE)
/* currently, we just check with 'C' locale */
- locale = setlocale (LC_ALL, "C");
+ setlocale (LC_ALL, "C");
#endif
bug20111102 ();
@@ -1297,7 +1296,7 @@ main (int argc, char **argv)
locale_da_DK ();
/* Avoid a warning by doing the setlocale outside of this #if */
#endif
- setlocale (LC_ALL, locale);
+ setlocale (LC_ALL, "C");
#endif
if (getenv ("MPFR_CHECK_LIBC_PRINTF"))