]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix wrong warning from clang 1310/head
authorVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 11:07:50 +0000 (13:07 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 11:07:50 +0000 (13:07 +0200)
commitd9ced40ab7bba90bbac0a5c1b8dca3bd741c845d
tree9664cc72271c2d44f89f52d8fac50af6f8e21fe7
parent43b798b7dd149782d9dbad58c1a849d6d528b1d2
lib: fix wrong warning from clang

The compiler cannot guess that rise() will not return here.
One should help.

Warning:
  Access to field 'file' results in a dereference of a null pointer
  (loaded from variable 'error')
aka error->file while error is NULL.

Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
lib/ferr.c