Skip to content

Commit

Permalink
* malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init
Browse files Browse the repository at this point in the history
	if MALLOC_CHECK_ env var contains an empty string.
  • Loading branch information
Ulrich Drepper committed Apr 24, 2006
1 parent cf6ada4 commit ceba6be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2006-04-24 Jakub Jelinek <jakub@redhat.com>

* malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init
if MALLOC_CHECK_ env var contains an empty string.

2006-04-24 Ulrich Drepper <drepper@redhat.com>

* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.
Expand Down
4 changes: 2 additions & 2 deletions malloc/arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ ptmalloc_init (void)
}
s = getenv("MALLOC_CHECK_");
#endif
if(s) {
if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0'));
if(s && s[0]) {
mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0'));
if (check_action != 0)
__malloc_check_init();
}
Expand Down

0 comments on commit ceba6be

Please sign in to comment.