aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty/vty.c
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-15 02:30:58 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-15 02:30:58 +0200
commitd19e58b13ce7716491d7fe22a91a52cf092b42a7 (patch)
treee16a267c7fa496ddc102844479be76ce71fc0ab9 /openbsc/src/vty/vty.c
parentefc92311e22e67a210429a15c29b396b0561317f (diff)
move talloc context creation out of on_dso / constructors
the various constructors get called in a non-obvious, linker determined order, which makes certain objects disappear from the talloc report. This change moves the talloc context creation into a new talloc_ctx.c file
Diffstat (limited to 'openbsc/src/vty/vty.c')
-rw-r--r--openbsc/src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c
index 53800d111..affe28d8d 100644
--- a/openbsc/src/vty/vty.c
+++ b/openbsc/src/vty/vty.c
@@ -1630,7 +1630,7 @@ extern void *tall_bsc_ctx;
/* Install vty's own commands like `who' command. */
void vty_init()
{
- tall_vty_ctx = talloc_named_const(tall_bsc_ctx, 1, "vty");
+ tall_vty_ctx = talloc_named_const(NULL, 0, "vty");
/* For further configuration read, preserve current directory. */
vty_save_cwd();