From 2edc30628aaa8c84d16c02d91c6aa49a66f8f19e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Sat, 15 Oct 2022 15:44:05 +0200 Subject: [PATCH] Use build_pure_c_string * src/pkg.c (init_pkg_once): Use build_pure_c_string instead of build_string. --- src/pkg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pkg.c b/src/pkg.c index 60cd4573ff1..2c390d04cd9 100644 --- a/src/pkg.c +++ b/src/pkg.c @@ -1179,16 +1179,17 @@ init_pkg_once (void) staticpro (&Vpackage_registry); /* PKG-FIXME: Not sure about the purecopy (last arg). */ Vpackage_registry = make_hash_table (hashtest_equal, DEFAULT_HASH_SIZE, - DEFAULT_REHASH_SIZE, DEFAULT_REHASH_THRESHOLD, + DEFAULT_REHASH_SIZE, + DEFAULT_REHASH_THRESHOLD, Qnil, false); - Vemacs_package = make_package (build_string ("emacs")); + Vemacs_package = make_package (build_pure_c_string ("emacs")); staticpro (&Vemacs_package); - Vkeyword_package = make_package (build_string ("keyword")); + Vkeyword_package = make_package (build_pure_c_string ("keyword")); register_package (Vemacs_package); staticpro (&Vkeyword_package); - XPACKAGE (Vkeyword_package)->nicknames = Fcons (build_string (""), Qnil); + XPACKAGE (Vkeyword_package)->nicknames = Fcons (build_pure_c_string (""), Qnil); register_package (Vkeyword_package); staticpro (&Vearmuffs_package); -- 2.39.2