From ca4009ab178cfa07a989ef9bbc89ee6f3caf1b93 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 4 Oct 2017 14:11:43 +0200 Subject: 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 --- src/expr/data_reg.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/expr') diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c index c925e20..a246952 100644 --- a/src/expr/data_reg.c +++ b/src/expr/data_reg.c @@ -194,9 +194,6 @@ int nftnl_data_reg_snprintf(char *buf, size_t size, uint32_t output_format, uint32_t flags, int reg_type) { - if (size) - buf[0] = '\0'; - switch(reg_type) { case DATA_VALUE: switch(output_format) { -- cgit v1.2.3