Fix coverity report (unchecked return and missing initialization)