aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/logging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index 4aaf5156..c14e6961 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -1028,6 +1028,9 @@ int log_init(const struct log_info *inf, void *ctx)
int i;
struct log_info_cat *cat_ptr;
+ /* Ensure that log_init is not called multiple times */
+ OSMO_ASSERT(tall_log_ctx == NULL)
+
tall_log_ctx = talloc_named_const(ctx, 1, "logging");
if (!tall_log_ctx)
return -ENOMEM;