avoid occasional unnecessary allocation in scan_rar