summaryrefslogtreecommitdiff
path: root/libc/misc/locale/locale.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-12-14 19:10:23 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-12-14 19:10:23 +0000
commitedcbb2ecce1455995c5990fb5f39d14881b809fa (patch)
treeaa6ba630a3cee460cb30471235d263181aa13ef5 /libc/misc/locale/locale.c
parent58d6ac1dcef87b61bdb5844108e9774c40d3976e (diff)
Fix a couple of 'declaration after statement' errors.
Diffstat (limited to 'libc/misc/locale/locale.c')
-rw-r--r--libc/misc/locale/locale.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index 1e79204c0..cf058ce3e 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -1378,9 +1378,8 @@ __locale_t weak_const_function __curlocale(void)
__locale_t weak_function __curlocale_set(__locale_t newloc)
{
- assert(newloc != LC_GLOBAL_LOCALE);
-
__locale_t oldloc = __curlocale_var;
+ assert(newloc != LC_GLOBAL_LOCALE);
__curlocale_var = newloc;
return oldloc;
}