summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-13 07:57:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-13 07:57:48 -0700
commitd0c786c915df3e708f310afbafc715a26a52d160 (patch)
tree6018f1428e33bcd225321644981b7ce71f750d18
parent73f53d2e6594ab6ad20a4daf9e06f9eb41cba600 (diff)
downloadtxr-d0c786c915df3e708f310afbafc715a26a52d160.tar.gz
txr-d0c786c915df3e708f310afbafc715a26a52d160.tar.bz2
txr-d0c786c915df3e708f310afbafc715a26a52d160.zip
sysif: bug: bogosity in protect call.
* sysif.c (sysif_init): The address of dirent_st must be registered with protect, not the value.
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
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);