From: Michael Tremer Date: Mon, 11 May 2026 08:44:42 +0000 (+0000) Subject: main: Allocate a memory context X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20bc0aaada38273d66dba9dd82339e38349006a;p=zone-sync.git main: Allocate a memory context Signed-off-by: Michael Tremer --- diff --git a/main.c b/main.c index c8c900f..4feebc0 100644 --- a/main.c +++ b/main.c @@ -21,8 +21,13 @@ #include #include +#include + typedef struct ctx { int log_level; + + // Memory Context + isc_mem_t* memctx; } ctx_t; const char* argp_program_version = PACKAGE_VERSION; @@ -79,5 +84,8 @@ int main(int argc, char* argv[]) { if (r) return r; + // Allocate a new memory context + isc_mem_create(&ctx.memctx); + return 0; }