add while judgement in flightno="(%w+)"

if flightno="(%w+)" is null, reduce the memory.