changeset 3181:b2e5c888f5f6

(mark_object): Add debugging code to check for ptr clobbered.
author Richard M. Stallman <rms@gnu.org>
date Thu, 27 May 1993 23:48:18 +0000
parents e54c45bae557
children d38749acdf27
files src/alloc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Thu May 27 22:15:01 1993 +0000
+++ b/src/alloc.c	Thu May 27 23:48:18 1993 +0000
@@ -1623,7 +1623,11 @@
 	    XUNMARK (obj);
 	    goto loop;
 	  }
+	if (ptr == 0)
+	  abort ();
 	mark_object (&ptr->car);
+	if (ptr == 0)
+	  abort ();
 	objptr = &ptr->cdr;
 	obj = ptr->cdr;
 	goto loop;