From b56199aab3056d397697ac0c510d4e973c240d7d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 12 Apr 2012 06:21:56 +0200 Subject: [PATCH] i9e_attach_to_stdout(): Don't insist on btrn == NULL. This allows to call this function even if the stdout buffer tree node is already attached. In this case i9e_attach_to_stdout() detaches the current btr node first. --- interactive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactive.c b/interactive.c index 27763eb3..f2e4a355 100644 --- a/interactive.c +++ b/interactive.c @@ -178,7 +178,7 @@ static char **i9e_completer(const char *text, int start, __a_unused int end) */ void i9e_attach_to_stdout(struct btr_node *producer) { - assert(!i9ep->stdout_btrn); + btr_remove_node(&i9ep->stdout_btrn); i9ep->stdout_btrn = btr_new_node(&(struct btr_node_description) EMBRACE(.name = "interactive_stdout", .parent = producer)); } -- 2.39.5