From b8d656093831d5acbfc016926d9189c8750e7db9 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 28 Sep 2002 16:32:48 +0000 Subject: [w3m-dev 03323] EDITOR * main.c (MAIN): use not_null() From: Hiroaki Shimotsu --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7fa0bf2..060f4b9 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.113 2002/09/24 17:06:04 ukai Exp $ */ +/* $Id: main.c,v 1.114 2002/09/28 16:32:49 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -444,9 +444,9 @@ MAIN(int argc, char **argv, char **envp) set_no_proxy(p); } - if (Editor == NULL && (p = getenv("EDITOR")) != NULL) + if (!non_null(Editor) && (p = getenv("EDITOR")) != NULL) Editor = p; - if (Mailer == NULL && (p = getenv("MAILER")) != NULL) + if (!non_null(Mailer) && (p = getenv("MAILER")) != NULL) Mailer = p; /* argument search 2 */ -- cgit v1.2.3