iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

libbpf-tools: Fix uninitialized issue #4865

Closed ShenChen1 closed 9 months ago

ShenChen1 commented 9 months ago

This problem was introduced in commit 16508e5.

opensnoop.c: In function ‘handle_event’:
opensnoop.c:208:65: warning: ‘e.pid’ is used uninitialized in this
function [-Wuninitialized]
  208 |   { .src_type = SRC_T_PROCESS, .params = { .process = { .pid =
e.pid }}},
      |