diff options
Diffstat (limited to 'src/expr/queue.c')
-rw-r--r-- | src/expr/queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr/queue.c b/src/expr/queue.c index f62db9f..e0fb785 100644 --- a/src/expr/queue.c +++ b/src/expr/queue.c @@ -235,6 +235,8 @@ static int nftnl_expr_queue_snprintf(char *buf, size_t len, uint32_t type, uint32_t flags, const struct nftnl_expr *e) { + if (len) + buf[0] = '\0'; switch (type) { case NFTNL_OUTPUT_DEFAULT: |