summaryrefslogtreecommitdiffstats
path: root/bin/csh/func.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-11 23:10:38 +0000
committerache <ache@FreeBSD.org>1996-08-11 23:10:38 +0000
commit6f7ebd36bf8479d18d03719ac960bb1ddc268d2c (patch)
treef837d2f2ab60d281f36a55349c9c5e0018869fe5 /bin/csh/func.c
parent8affe69b986c0b8bb82151a3b5717f1279fb4864 (diff)
downloadFreeBSD-src-6f7ebd36bf8479d18d03719ac960bb1ddc268d2c.zip
FreeBSD-src-6f7ebd36bf8479d18d03719ac960bb1ddc268d2c.tar.gz
Fix unsetenv of locale variable
Diffstat (limited to 'bin/csh/func.c')
-rw-r--r--bin/csh/func.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 445d42e..f9f6da0 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: func.c,v 1.3 1995/05/30 00:06:34 rgrimes Exp $
+ * $Id: func.c,v 1.4 1995/10/23 23:08:26 ache Exp $
*/
#ifndef lint
@@ -1016,6 +1016,10 @@ dounsetenv(v, t)
if (!Gmatch(name, *v))
continue;
maxi = 1;
+ /*
+ * Delete name, and start again cause the environment changes
+ */
+ Unsetenv(name);
if (eq(name, STRLANG) || eq(name, STRLC_CTYPE) ||
eq(name, STRLC_ALL) || eq(name, STRLC_COLLATE)) {
#ifdef NLS
@@ -1031,10 +1035,6 @@ dounsetenv(v, t)
getenv("LC_CTYPE") == NULL;
#endif /* NLS */
}
- /*
- * Delete name, and start again cause the environment changes
- */
- Unsetenv(name);
break;
}
xfree((ptr_t) name);
OpenPOWER on IntegriCloud