Core: Fix potentially uninitialized variable warnings