diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-07-13 07:57:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-13 07:57:48 -0700 |
commit | d0c786c915df3e708f310afbafc715a26a52d160 (patch) | |
tree | 6018f1428e33bcd225321644981b7ce71f750d18 | |
parent | 73f53d2e6594ab6ad20a4daf9e06f9eb41cba600 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |