Workaround for uninitialized union clang bug
authorBrenden Blanco <bblanco@plumgrid.com>
Thu, 3 Sep 2015 18:49:54 +0000 (11:49 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Thu, 3 Sep 2015 18:49:54 +0000 (11:49 -0700)
commitfdc027cf9cbd600ceaa2d535b5276a6baaf727b0
treece7e501c7073ebdd149e5ed73b50b7a3fa85c3ac
parent3900144100b304e4552598ae72b5da344307d237
Workaround for uninitialized union clang bug

* Clang does not generate code to initialize the entire union when
  initializing a nested struct. This is the case for union bpf_attr.
  As a workaround, call memset explicitly.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/cc/libbpf.c