diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2020-04-08 22:44:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 22:44:53 +0200 |
| commit | 2ee1e4b1ba956eb6f56631b61ddc2847668196ad (patch) | |
| tree | 189ce03279b0d557236d0bd004abc27db0ed53e8 /lib/command_match.c | |
| parent | c189a11d7f08b37486767573dbe28d609e21d141 (diff) | |
| parent | ff8b039ecf8d78162d7ef38f3285d044ebc7d4ec (diff) | |
Merge pull request #6175 from ton31337/fix/avoid_same_type_typecasting
*: Do not cast to the same type
Diffstat (limited to 'lib/command_match.c')
| -rw-r--r-- | lib/command_match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_match.c b/lib/command_match.c index 0195aebc17..801b05f157 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -88,7 +88,7 @@ enum matcher_rv command_match(struct graph *cmdgraph, vector vline, // prepend a dummy token to match that pesky start node vector vvline = vector_init(vline->alloced + 1); - vector_set_index(vvline, 0, (void *)XSTRDUP(MTYPE_TMP, "dummy")); + vector_set_index(vvline, 0, XSTRDUP(MTYPE_TMP, "dummy")); memcpy(vvline->index + 1, vline->index, sizeof(void *) * vline->alloced); vvline->active = vline->active + 1; |
