Fix scan-build warnings.

4 jobs for develop in 14 minutes and 57 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #18073
mistral xen
build-gcc64

00:03:16

passed #18074
mistral xen
build-intel18

00:09:35

 
  Check
passed #18075
mistral xen
check-gcc64

00:04:55

passed #18076
mistral xen
check-intel18

00:05:21