Check there is a filename argument for inplace editing.

Reported-by: Philip Guenther <guenther@openbsd.org>
Submitted-By: Stuart Henderson <sthen@openbsd.org>