Fixes "(error) Uninitialized variable: ret" found by cppcheck.
Signed-off-by: Alexey I. Froloff <raorn@raorn.name>