We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e882e05 + 5e78db8 commit 53cd6c4Copy full SHA for 53cd6c4
src/libply/aux/syscall.c
@@ -70,12 +70,12 @@ int bpf_prog_test_run(int prog_fd)
70
static int bpf_map_op(enum bpf_cmd cmd, int fd,
71
void *key, void *val_or_next, int flags)
72
{
73
- union bpf_attr attr = {
74
- .map_fd = fd,
75
- .key = ptr_to_u64(key),
76
- .value = ptr_to_u64(val_or_next),
77
- .flags = flags,
78
- };
+ union bpf_attr attr = {};
+
+ attr.map_fd = fd;
+ attr.key = ptr_to_u64(key);
+ attr.value = ptr_to_u64(val_or_next);
+ attr.flags = flags;
79
80
return syscall(__NR_bpf, cmd, &attr, sizeof(attr));
81
}
0 commit comments