changeset 36189:3873da2fd8b1

(malloc_initialize_hook): Handle case thet `environ' is null.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 19 Feb 2001 12:23:24 +0000
parents 6619ad846eb1
children 9e85a67eae3a
files src/emacs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Mon Feb 19 12:20:08 2001 +0000
+++ b/src/emacs.c	Mon Feb 19 12:23:24 2001 +0000
@@ -675,7 +675,7 @@
 	{
 	  char **p;
 
-	  for (p = environ; *p; p++)
+	  for (p = environ; p && *p; p++)
 	    if (strncmp (*p, "MALLOC_CHECK_=", 14) == 0)
 	      {
 		do