fix coverity issue 966597 - error line is not always initialised