The paper deals with an optimal control problem with a scalar first-order state constraint and a scalar control.In presence of (nonessential) touch points,the arc structure of the trajectory is not stable.Under some reasonable assumptions,we show that boundary arcs are structurally stable, and that touch point can either remain so, vanish or be transformed into a single boundary arc. Assuming a weak second-order optimality condition (equivalent to uniform quadratic growth), stability and sensitivity results are given. The main tools are the study of a quadratic tangent problem and the notion of strong regularity.Those results enable us to design a new continuation algorithm,presented at the end of the paper, that handles automatically changes in the structure of the trajectory.