diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-23 12:06:34 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-01 18:45:30 +0100 |
| commit | b5a1e9ef5c7b1e505e6d82ea9c542748005afe63 (patch) | |
| tree | e5384d149fa22ce108893beba8811984912024a9 /lib/command_parse.y | |
| parent | e9484f70b21ed49d0ca6dbf2899b3a6306ffd2e9 (diff) | |
lib: remove misleading copy/del_cmd_element
struct cmd_element items are static global variables, they are never
allocated, copied or freed.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_parse.y')
| -rw-r--r-- | lib/command_parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y index d084ddd73f..a5e582c73b 100644 --- a/lib/command_parse.y +++ b/lib/command_parse.y @@ -458,7 +458,7 @@ terminate_graph (struct parser_ctx *ctx, struct graph_node *finalnode) strdup (CMD_CR_TEXT), strdup ("")); struct graph_node *end_element_node = - graph_new_node (ctx->graph, element, (void (*)(void *)) &del_cmd_element); + graph_new_node (ctx->graph, element, NULL); if (node_adjacent (finalnode, end_token_node)) cmd_yyerror (ctx, "Duplicate command."); |
