From 80547030b31c30121d5f74fd51e7b656fac011e9 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 27 2024 18:20:05 +0000 Subject: slbt_get_archive_meta(): ptr to driver ctx prior to signature-only archives. --- 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);