From f2d323ef0f56892cdc52ccfd3f74c9084fb704f7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 9 Jul 2018 19:18:35 +0200 Subject: vty/command.c: talloc from tall_vty_cmd_ctx, not NULL Change-Id: Iaa409b4f63557c8fb028bbb322b5e7253393c05c --- src/vty/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vty/command.c b/src/vty/command.c index 66cf6a8e..689609c0 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -514,7 +514,7 @@ char *osmo_asciidoc_escape(const char *inp) } } - out = talloc_size(NULL, len + 1); + out = talloc_size(tall_vty_cmd_ctx, len + 1); if (!out) return NULL; @@ -574,7 +574,7 @@ static char *xml_escape(const char *inp) } } - out = talloc_size(NULL, len + 1); + out = talloc_size(tall_vty_cmd_ctx, len + 1); if (!out) return NULL; @@ -1317,7 +1317,7 @@ cmd_deopt(const char *str) return NULL; /* tmp will hold a string of len-2 chars, so 'len' size is fine */ - tmp = talloc_size(NULL, len); + tmp = talloc_size(tall_vty_cmd_ctx, len); memcpy(tmp, (str + 1), len - 2); tmp[len - 2] = '\0'; -- cgit v1.2.3