rtos: fix uninitialised variable warning