about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-09-06 09:07:57 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2019-09-06 09:07:57 +0000
commit28e198c31560c65e954097dec178d444e6867d5a (patch)
tree95a952d4d24b2b71c655a54a1f4f5ae812c224cc /src
parenta842356299078e35e1feb589ec1741d0ac4eadd7 (diff)
downloadlynx-snapshots-28e198c31560c65e954097dec178d444e6867d5a.tar.gz
snapshot of project "lynx", label v2-9-0dev_4c
Diffstat (limited to 'src')
-rw-r--r--src/LYStyle.c6
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);