aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-05 23:40:19 +0100
committergingerBill <bill@gingerbill.org>2018-08-05 23:40:19 +0100
commitfad3947e26266ada585f6879652fccf7c142e044 (patch)
treed1dd68e13379e3425bdcb8b8b55677c539526282 /src/parser.cpp
parentd8e5b2d1a4ae582f9f0436358c55866aeb1776a5 (diff)
Add `*with_allocator` procedures to `mem`
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index a1f8ff1e1..3edc8ba57 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -4342,7 +4342,7 @@ skip:
gb_mutex_lock(&p->file_add_mutex);
defer (gb_mutex_unlock(&p->file_add_mutex));
- array_add(&pkg->files, file);
+ array_add(&file->pkg->files, file);
if (pkg->name.len == 0) {
pkg->name = file->package_name;