aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-05-27 23:48:18 +0000
committerRichard M. Stallman <[email protected]>1993-05-27 23:48:18 +0000
commit6b5fd105cefb333edfd2a39af1c6428bfb1c4e19 (patch)
tree6573243f977314859f91859a4af6823da39148b0 /src/alloc.c
parent78c7997f4d271706a9b9b00d799820538ce4dad9 (diff)
(mark_object): Add debugging code to check for ptr clobbered.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 48117d4e35..a6f554ad08 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1623,7 +1623,11 @@ mark_object (objptr)
XUNMARK (obj);
goto loop;
}
+ if (ptr == 0)
+ abort ();
mark_object (&ptr->car);
+ if (ptr == 0)
+ abort ();
objptr = &ptr->cdr;
obj = ptr->cdr;
goto loop;