summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fsm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 6649b091..049663d7 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -169,7 +169,8 @@ struct osmo_fsm_inst *osmo_fsm_inst_alloc(struct osmo_fsm *fsm, void *ctx, void
fi->log_level = log_level;
fi->timer.data = fi;
fi->timer.cb = fsm_tmr_cb;
- fi->id = id;
+ if (id)
+ fi->id = talloc_strdup(fi, id);
if (!fsm_log_addr) {
if (id)