core: clang spotted and uninitialized var error

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>