mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Moved the environment variable cleanup code into a destructor function.
- Fixed a typo in the hstrerror() function. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14782 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_init_exit.c,v 1.1.1.1 2004-07-26 16:31:57 obarthel Exp $
|
||||
* $Id: stdlib_init_exit.c,v 1.2 2004-12-19 16:42:51 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -60,20 +60,6 @@ __stdlib_exit(void)
|
||||
}
|
||||
#endif /* __MEM_DEBUG */
|
||||
|
||||
/* Now for the local variables that may still be set. */
|
||||
if(__lv_root != NULL)
|
||||
{
|
||||
/* ZZZ why is this being done here? */
|
||||
|
||||
do
|
||||
{
|
||||
D(("deleting variable '%s'",__lv_root->lv_Name));
|
||||
|
||||
DeleteVar(__lv_root->lv_Name,0);
|
||||
}
|
||||
while((__lv_root = __lv_root->lv_Next) != NULL);
|
||||
}
|
||||
|
||||
/* Clean this up, too, just to be safe. */
|
||||
NewList((struct List *)&__alloca_memory_list);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user