diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-12-16 17:12:50 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-12-16 17:12:50 -0800 |
commit | d9a18c7440ac4818de7561212e041a85d4506a72 (patch) | |
tree | 7b903329eeaa215d98c8709566e70274a03270db | |
parent | a19c662ca2985a385525ae8d6b15ce57b3142cd2 (diff) | |
download | txr-d9a18c7440ac4818de7561212e041a85d4506a72.tar.gz txr-d9a18c7440ac4818de7561212e041a85d4506a72.tar.bz2 txr-d9a18c7440ac4818de7561212e041a85d4506a72.zip |
listener: regression: txr bails when .txr-profile missing.
* parser.c (load_rcfile): When neither ~/.txr-profile nor ~/.txr_profile
exist, then bail. Do not pass nil to abs-path-p and other functions.
-rw-r--r-- | parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1040,6 +1040,9 @@ static void load_rcfile(val home, val pexist_s, val psafe_s, val ppriv_s) if2(funcall1(pexist_s, try2), try2)); val resolved_name = name; + if (!name) + return; + if (!funcall1(psafe_s, name)) { report_path_perm_problem(name); return; |