summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-27 18:20:05 +0000
committermidipix <writeonce@midipix.org>2024-01-27 18:20:05 +0000
commit80547030b31c30121d5f74fd51e7b656fac011e9 (patch)
tree6fb5a670429c5ae15ad7b3df0abb99d16138045a /src/arbits
parent1ec4068dff686435d1ef0c9a73975f42d6c3b7bf (diff)
downloadslibtool-80547030b31c30121d5f74fd51e7b656fac011e9.tar.bz2
slibtool-80547030b31c30121d5f74fd51e7b656fac011e9.tar.xz
slbt_get_archive_meta(): ptr to driver ctx prior to signature-only archives.
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/slbt_archive_meta.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index cc14fe7..d57b5bf 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -782,6 +782,9 @@ int slbt_get_archive_meta(
if (!(m = calloc(1,sizeof(*m))))
return SLBT_SYSTEM_ERROR(dctx,0);
+ /* associated driver context */
+ m->dctx = dctx;
+
/* archive map info */
m->armeta.r_archive.map_addr = archive->map_addr;
m->armeta.r_archive.map_size = archive->map_size;
@@ -1200,9 +1203,6 @@ int slbt_get_archive_meta(
/* member vector */
m->armeta.a_memberv = m->memberv;
- /* associated driver context */
- m->dctx = dctx;
-
/* all done */
if (m->hdrinfov) {
free(m->hdrinfov);