diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index 317727d6121494ecd4512254c3dde8b2ee96a3ba..ed42b006533c455463467414265d8ec19065c54d 100644
--- a/tools/lib/bpf/bpf.c
+++ b/tools/lib/bpf/bpf.c
@@ -457,7 +457,7 @@ static int bpf_map_batch_common(int cmd, int fd, void  *in_batch,
 				__u32 *count,
 				const struct bpf_map_batch_opts *opts)
 {
-	union bpf_attr attr = {};
+	union bpf_attr attr;
 	int ret;
 
 	if (!OPTS_VALID(opts, bpf_map_batch_opts))