diff options
Diffstat (limited to 'src/expr/lookup.c')
-rw-r--r-- | src/expr/lookup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr/lookup.c b/src/expr/lookup.c index e4c05ec..32220a3 100644 --- a/src/expr/lookup.c +++ b/src/expr/lookup.c @@ -242,6 +242,8 @@ static int nftnl_expr_lookup_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: |