Missing check for return value