aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-19 12:23:46 +0000
committerGerd Moellmann2001-02-19 12:23:46 +0000
commita57c4026f20068117b927424ceadbeeb55269178 (patch)
treeadba07d680f3d0e78c690947c3b6bb933e5e0eb4 /src
parentaeac019e2f2b9e6a13fc50d9a7291131754a26ed (diff)
downloademacs-a57c4026f20068117b927424ceadbeeb55269178.tar.gz
emacs-a57c4026f20068117b927424ceadbeeb55269178.zip
(malloc_initialize_hook): Handle case thet `environ'
is null.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/emacs.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 44015eb9296..69ab0fe6bdf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-02-19 Gerd Moellmann <gerd@gnu.org> 12001-02-19 Gerd Moellmann <gerd@gnu.org>
2 2
3 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4 is null.
5
3 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration 6 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4 to the start of the file. 7 to the start of the file.
5 8
diff --git a/src/emacs.c b/src/emacs.c
index e2b1bffe819..023c036e566 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -675,7 +675,7 @@ malloc_initialize_hook ()
675 { 675 {
676 char **p; 676 char **p;
677 677
678 for (p = environ; *p; p++) 678 for (p = environ; p && *p; p++)
679 if (strncmp (*p, "MALLOC_CHECK_=", 14) == 0) 679 if (strncmp (*p, "MALLOC_CHECK_=", 14) == 0)
680 { 680 {
681 do 681 do