core: Fix uninitialized variable