coverity: fixed unchecked return value from library