Fix potential use of ed while unitialized.