summaryrefslogtreecommitdiffstats
path: root/src/expr/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/range.c')
-rw-r--r--src/expr/range.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/expr/range.c b/src/expr/range.c
index c7bb7c7..b2789ff 100644
--- a/src/expr/range.c
+++ b/src/expr/range.c
@@ -263,9 +263,6 @@ static int nftnl_expr_range_snprintf_default(char *buf, size_t size,
static int nftnl_expr_range_snprintf(char *buf, size_t size, uint32_t type,
uint32_t flags, const struct nftnl_expr *e)
{
- if (size)
- buf[0] = '\0';
-
switch (type) {
case NFTNL_OUTPUT_DEFAULT:
return nftnl_expr_range_snprintf_default(buf, size, e);