Core: Fix potentially uninitialized variable warnings

True, I'll do this when I have time.