rtlib: Fix uninitialized variable in format()