aboutsummaryrefslogtreecommitdiffstats
path: root/src/xua_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xua_msg.c')
-rw-r--r--src/xua_msg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xua_msg.c b/src/xua_msg.c
index d56009f..ed0cdc7 100644
--- a/src/xua_msg.c
+++ b/src/xua_msg.c
@@ -33,7 +33,13 @@
#include <string.h>
#include <errno.h>
-static void *tall_xua;
+static void *tall_xua = NULL;
+
+/* Allocate the root talloc context used for xua_msg_alloc(). */
+void osmo_xua_msg_tall_ctx_init(void *ctx)
+{
+ tall_xua = talloc_named_const(ctx, 0, "xua_msg");
+}
struct xua_msg *xua_msg_alloc(void)
{