Fix warnings reported by scan-build

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>