diff options
Diffstat (limited to 'src/gen.c')
-rw-r--r-- | src/gen.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -168,9 +168,6 @@ static int nftnl_gen_cmd_snprintf(char *buf, size_t size, { int ret, remain = size, offset = 0; - if (size) - buf[0] = '\0'; - ret = nftnl_cmd_header_snprintf(buf + offset, remain, cmd, type, flags); SNPRINTF_BUFFER_SIZE(ret, remain, offset); |