Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
added missing space in struct initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Dec 19, 2023
1 parent 8a94e9b commit 34503b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ int add_if_index(struct interface intf)
open_if_map();
}
if_map.map_fd = if_fd;
struct ifindex_ip4 o_ifip4 ={0};
struct ifindex_ip4 o_ifip4 = {0};
if_map.key = (uint64_t)&intf.index;
if_map.flags = BPF_ANY;
if_map.value = (uint64_t)&o_ifip4;
Expand Down

0 comments on commit 34503b2

Please sign in to comment.