diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-09-06 09:07:57 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-09-06 09:07:57 +0000 |
commit | 28e198c31560c65e954097dec178d444e6867d5a (patch) | |
tree | 95a952d4d24b2b71c655a54a1f4f5ae812c224cc /src | |
parent | a842356299078e35e1feb589ec1741d0ac4eadd7 (diff) | |
download | lynx-snapshots-28e198c31560c65e954097dec178d444e6867d5a.tar.gz |
snapshot of project "lynx", label v2-9-0dev_4c
Diffstat (limited to 'src')
-rw-r--r-- | src/LYStyle.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LYStyle.c b/src/LYStyle.c index c73b7897..c7aa52b3 100644 --- a/src/LYStyle.c +++ b/src/LYStyle.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYStyle.c,v 1.109 2018/03/10 01:54:30 tom Exp $ + * $LynxId: LYStyle.c,v 1.110 2019/09/06 09:00:48 tom Exp $ * * character level styles for Lynx * (c) 1996 Rob Partington -- donated to the Lyncei (if they want it :-) @@ -932,10 +932,12 @@ void init_color_styles(char **from_cmdline, const char *default_styles) } CTRACE1((tfp, "init_color_styles(%s)\n", NonNull(lynx_lss_file))); + if (isEmpty(lynx_lss_file)) + return; /* * If the lynx-style file is not available, inform the user and exit. */ - if (isEmpty(lynx_lss_file) || !LYCanReadFile(lynx_lss_file)) { + if (!LYCanReadFile(lynx_lss_file)) { fprintf(stderr, gettext("\nLynx file \"%s\" is not available.\n\n"), NonNull(cp)); exit_immediately(EXIT_FAILURE); |