diff --git a/visudo.c b/visudo.c index e8546baad..13366b247 100644 --- a/visudo.c +++ b/visudo.c @@ -104,8 +104,10 @@ main(argc, argv) /* * set up the Editor variable correctly */ +#ifndef STATICEDITOR if ( (Editor = getenv("EDITOR")) == NULL) if ( (Editor = getenv("VISUAL")) == NULL ) +#endif /* !STATICEDITOR */ Editor = EDITOR; /*