summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-16 17:12:50 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-12-16 17:12:50 -0800
commitd9a18c7440ac4818de7561212e041a85d4506a72 (patch)
tree7b903329eeaa215d98c8709566e70274a03270db
parenta19c662ca2985a385525ae8d6b15ce57b3142cd2 (diff)
downloadtxr-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index e60166cc..ba236e65 100644
--- a/parser.c
+++ b/parser.c
@@ -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;