Skip to content

Commit

Permalink
announce: fix clang warning
Browse files Browse the repository at this point in the history
error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
  • Loading branch information
MathieuDuponchelle authored and jbkempf committed Oct 15, 2019
1 parent 49a5dd9 commit 0de4839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/announce.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static void callback(void *cbarg, int r, const struct mdns_ip *mdns_ip, const st
}
struct mdns_ctx *ctx = (struct mdns_ctx *) cbarg;
struct mdns_hdr hdr = {0};
struct rr_entry answers[4] = {0}; // A/AAAA, SRV, TXT, PTR
struct rr_entry answers[4] = {{0}}; // A/AAAA, SRV, TXT, PTR
hdr.flags |= FLAG_QR;
hdr.flags |= FLAG_AA;
hdr.num_ans_rr = sizeof(answers) / sizeof(answers[0]);
Expand Down

0 comments on commit 0de4839

Please sign in to comment.