]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix "may be used uninitialized" build warning
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 14 Jan 2019 18:29:18 +0000 (16:29 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 19 Feb 2019 12:40:52 +0000 (09:40 -0300)
commit714eb5ee4555caf29b216dd44d41ba8474dc6b67
treeb022f4a4b0cf8d3929fc618e2a543565ebf2dcd0
parentfcca30daba3721da7dde995527bfe0d29adb5bf5
lib: fix "may be used uninitialized" build warning

We are already handling all possible four cases from the "nb_event"
enumeration, so this problem can't happen in practice. Initialize the
"ref" variable to zero to silence the warning.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c