Fixed an uninitialized variable / broken code.

- Follow up to c6c2ad187c386d8d27d3336dcbdd5a92555493d2
- Special thanks to Ind

Signed-off-by: Haru <haru@dotalux.com>