Core/Misc: Fix some static analysis issues

Fix some static analysis issues about uninitialized values.