summaryrefslogtreecommitdiffstats
path: root/sysif.c
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
commit3656ba07ccf49eb25cf3b1f30298de9b2c0955d4 (patch)
tree6018f1428e33bcd225321644981b7ce71f750d18 /sysif.c
parent7ee3f83d8a43b71dbd434f83f92f54b9f72d64cd (diff)
downloadtxr-3656ba07ccf49eb25cf3b1f30298de9b2c0955d4.tar.gz
txr-3656ba07ccf49eb25cf3b1f30298de9b2c0955d4.tar.bz2
txr-3656ba07ccf49eb25cf3b1f30298de9b2c0955d4.zip
sysif: bug: bogosity in protect call.
* sysif.c (sysif_init): The address of dirent_st must be registered with protect, not the value.
Diffstat (limited to 'sysif.c')
-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);