summaryrefslogtreecommitdiffstats
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-09 23:31:11 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-09 23:31:11 +0200
commit78602b80294194b31fd402843c95af3bbb5c9999 (patch)
tree3b8733555e55039b88e7dd6720dd78fd10d78f2e /lib/command_match.c
parentlib: Remove unnecessary XSTRDUP (diff)
downloadfrr-78602b80294194b31fd402843c95af3bbb5c9999.tar.xz
frr-78602b80294194b31fd402843c95af3bbb5c9999.zip
lib: Remove unnecessary node pointer
Selector and option heads had pointers to their ends, but this turned out to be unnecessary Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index 9b9f8a0ec..b323bc580 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -469,7 +469,6 @@ copy_node (struct graph_node *node)
{
struct graph_node *new = new_node(node->type);
new->children = NULL;
- new->end = NULL;
new->text = node->text ? XSTRDUP(MTYPE_CMD_TOKENS, node->text) : NULL;
new->value = node->value;
new->min = node->min;