Silence undefined return value warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 5 Sep 2015 15:44:01 +0000 (11:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 5 Sep 2015 15:48:08 +0000 (11:48 -0400)
commitdd49e13f4a9eddfda119f7bc9dbb1d836689eaad
tree14cfb30e85543056348fcf779c676a85c8937f01
parent48b40bcf9da8c227901d15e90f784d7cd5b5935c
Silence undefined return value warning

clang-analyzer complains that "ret" may be returned uninitialized
which can't happen with a valid session configuration. For this to
occur, either libxml2 would have to return a bogus ChildElementCount
(return non-zero when there a actually no child nodes) _or_ the node
would have children of an unexpected type, which would be catched by
the validation performed against the XSD.

Nonetheless, the value is initialized here to silence this warning.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/config/config.c
This page took 0.026448 seconds and 5 git commands to generate.