fixing analyzer warnings

Signed-off-by: Van Simmons <rvsrvs@gmail.com>