>From dc732f73d02c0dc7fdf1e6c2e23993699c2e0b57 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 7 Jun 2018 19:12:27 -0700 Subject: [PATCH 02/10] Simplify init_module_assertions * src/emacs-module.c (init_module_assertions): Just use NULL instead of allocating a dummy on the stack and then using eassert. Practical platforms check for null pointer dereferencing nowadays, so this is good enough. --- src/emacs-module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/emacs-module.c b/src/emacs-module.c index 9c2de13d53..9ecc08e54b 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -1172,9 +1172,7 @@ init_module_assertions (bool enable) { /* We use a hidden environment for storing the globals. This environment is never freed. */ - emacs_env env; - global_env = initialize_environment (&env, &global_env_private); - eassert (global_env != &env); + global_env = initialize_environment (NULL, &global_env_private); } } -- 2.17.1