diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 7d63e3c79b6..452d31f9398 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5725,6 +5725,8 @@ purecopy (Lisp_Object obj) | |||
| 5725 | void | 5725 | void |
| 5726 | staticpro (Lisp_Object *varaddress) | 5726 | staticpro (Lisp_Object *varaddress) |
| 5727 | { | 5727 | { |
| 5728 | for (int i = 0; i < staticidx; i++) | ||
| 5729 | eassert (staticvec[i] != varaddress); | ||
| 5728 | if (staticidx >= NSTATICS) | 5730 | if (staticidx >= NSTATICS) |
| 5729 | fatal ("NSTATICS too small; try increasing and recompiling Emacs."); | 5731 | fatal ("NSTATICS too small; try increasing and recompiling Emacs."); |
| 5730 | staticvec[staticidx++] = varaddress; | 5732 | staticvec[staticidx++] = varaddress; |