diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-18 23:55:09 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-18 23:55:09 +0000 |
commit | 7cec919da585246a86443c57e1f04fc79cce5954 (patch) | |
tree | cafabfdfd6fce21ccbe16aa4834cd703f59863a8 /src/LYMain.c | |
parent | e86c1c8ddabde50e52019b5a00026e5e3a73b5e3 (diff) | |
download | lynx-snapshots-7cec919da585246a86443c57e1f04fc79cce5954.tar.gz |
snapshot of project "lynx", label v2-8-9dev_16v
Diffstat (limited to 'src/LYMain.c')
-rw-r--r-- | src/LYMain.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/LYMain.c b/src/LYMain.c index 92d19574..18c8898f 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYMain.c,v 1.273 2018/03/11 22:49:35 tom Exp $ + * $LynxId: LYMain.c,v 1.274 2018/03/18 19:17:00 tom Exp $ */ #include <HTUtils.h> #include <HTTP.h> @@ -1450,14 +1450,14 @@ int main(int argc, /* * Open command-script, if specified */ - if (lynx_cmd_script != 0) { + if (non_empty(lynx_cmd_script)) { LYTildeExpand(&lynx_cmd_script, TRUE); LYOpenCmdScript(); } /* * Open command-logging, if specified */ - if (lynx_cmd_logfile != 0) { + if (non_empty(lynx_cmd_logfile)) { LYTildeExpand(&lynx_cmd_logfile, TRUE); LYOpenCmdLogfile(argc, argv); } @@ -1483,13 +1483,13 @@ int main(int argc, * If no alternate configuration file was specified on the command line, * see if it's in the environment. */ - if (!lynx_cfg_file) { + if (isEmpty(lynx_cfg_file)) { if (((cp = LYGetEnv("LYNX_CFG")) != NULL) || (cp = LYGetEnv("lynx_cfg")) != NULL) StrAllocCopy(lynx_cfg_file, cp); } #ifdef USE_PROGRAM_DIR - if (!lynx_cfg_file) { + if (isEmpty(lynx_cfg_file)) { HTSprintf0(&lynx_cfg_file, "%s\\lynx.cfg", program_dir); if (!LYCanReadFile(lynx_cfg_file)) { FREE(lynx_cfg_file); @@ -1502,7 +1502,7 @@ int main(int argc, * If we still don't have a configuration file, use the userdefs.h * definition. */ - if (!lynx_cfg_file) + if (isEmpty(lynx_cfg_file)) StrAllocCopy(lynx_cfg_file, LYNX_CFG_FILE); #ifndef _WINDOWS /* avoid the whole ~ thing for now */ @@ -1750,7 +1750,7 @@ int main(int argc, } /* tilde-expand LYCookieSaveFile */ - if (LYCookieSaveFile != NULL) { + if (non_empty(LYCookieSaveFile)) { LYTildeExpand(&LYCookieSaveFile, FALSE); } #ifdef USE_PROGRAM_DIR @@ -1803,10 +1803,10 @@ int main(int argc, /* * We have a save space path, make sure it's valid. - FM */ - if (lynx_save_space && *lynx_save_space == '\0') { + if (isEmpty(lynx_save_space)) { FREE(lynx_save_space); } - if (lynx_save_space) { + if (non_empty(lynx_save_space)) { LYTildeExpand(&lynx_save_space, TRUE); #ifdef VMS LYLowerCase(lynx_save_space); @@ -2074,7 +2074,7 @@ int main(int argc, * force in "//localhost", and if it's not an absolute URL, make it one. - * FM */ - if (homepage) { + if (non_empty(homepage)) { LYEnsureAbsoluteURL(&homepage, "HOMEPAGE", FALSE); } |