Fixed new GCC warnings in core.c

Enabling -O1 optimizations in 'maintainer' builds revealed some
new warnings about use potentially uninitialized variables.