aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/command.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-07-09 19:18:35 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-07-09 23:41:11 +0200
commitf2d323ef0f56892cdc52ccfd3f74c9084fb704f7 (patch)
treef8000e8061f3535b1ef069be429a3d4a12ade386 /src/vty/command.c
parent94c0031297abb0bb42a4ea23e68f944622f50469 (diff)
vty/command.c: talloc from tall_vty_cmd_ctx, not NULL
Diffstat (limited to 'src/vty/command.c')
-rw-r--r--src/vty/command.c6
1 files changed, 3 insertions, 3 deletions
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';