From d0c786c915df3e708f310afbafc715a26a52d160 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 13 Jul 2021 07:57:48 -0700 Subject: sysif: bug: bogosity in protect call. * sysif.c (sysif_init): The address of dirent_st must be registered with protect, not the value. --- sysif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysif.c b/sysif.c index 0c79dac4..ca393083 100644 --- a/sysif.c +++ b/sysif.c @@ -2448,7 +2448,7 @@ static val dirstat(val dirent, val dir_path, val stat_opt) void sysif_init(void) { - protect(&at_exit_list, dirent_st, &env_list, &env_hash, convert(val *, 0)); + protect(&at_exit_list, &dirent_st, &env_list, &env_hash, convert(val *, 0)); atexit(at_exit_handler); -- cgit v1.2.3