aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-06-04 19:01:50 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-06-04 19:01:50 +0200
commit4f5b2bd12736b32c0a35496e8ca8f03d305c54b4 (patch)
tree36b7daf5bca8e480e31e70c6f4f82950d138ac3f /src/check_builtin.cpp
parent5628cfabe59feef67cffcd08ee4eb4a74bffda2c (diff)
fix crash when you have 2 `#load_directory` calls with the same path
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index aa3be0bbd..15c63905e 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1345,6 +1345,8 @@ gb_internal LoadDirectiveResult check_load_directory_directive(CheckerContext *c
map_set(&c->info->load_directory_map, call, new_cache);
} else {
cache->file_error = file_error;
+
+ map_set(&c->info->load_directory_map, call, cache);
}
});