diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-04 14:11:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-04 14:21:42 +0200 |
commit | ca4009ab178cfa07a989ef9bbc89ee6f3caf1b93 (patch) | |
tree | 23e9d7266beb69ce44bf7d06c0c2e743e4761ffc /src/set.c | |
parent | 2c8e01c555a488f32c9648a1b8ee7b6ed1c3e194 (diff) |
src: do not nul-terminate internal helper functions
Public API already does this for us, no need to do this again from
internal helper functions.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set.c')
-rw-r--r-- | src/set.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -895,9 +895,6 @@ static int nftnl_set_cmd_snprintf(char *buf, size_t size, if (type == NFTNL_OUTPUT_XML) return 0; - if (size) - buf[0] = '\0'; - /* prevent set_elems to print as events */ inner_flags &= ~NFTNL_OF_EVENT_ANY; |