about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-12-28 16:58:59 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-12-28 16:58:59 +0000
commit54f151b2d9abb8dfafe4b69ccc783bdec46b65f5 (patch)
tree69bb52ffbd12913ec4356bab1507f76c5e7f4f05 /src/LYMain.c
parenteee24ddac89576eaf9efdd3753eb35e1e7bf4a6d (diff)
downloadlynx-snapshots-54f151b2d9abb8dfafe4b69ccc783bdec46b65f5.tar.gz
snapshot of project "lynx", label v2-9-0dev_0e
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index 36c22ed5..7c8eca0e 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMain.c,v 1.282 2018/07/08 15:22:44 tom Exp $
+ * $LynxId: LYMain.c,v 1.283 2018/12/28 14:21:31 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTP.h>
@@ -2361,9 +2361,9 @@ void reload_read_cfg(void)
 	FREE(tempfile);
 	return;			/* can not write the very own file :( */
     }
+#ifdef USE_PERSISTENT_COOKIES
     if (LYCookieFile != 0 && LYCookieSaveFile != 0) {
 	/* set few safe flags: */
-#ifdef USE_PERSISTENT_COOKIES
 	BOOLEAN persistent_cookies_flag = persistent_cookies;
 	char *LYCookieFile_flag = NULL;
 	char *LYCookieSaveFile_flag = NULL;
@@ -2372,8 +2372,6 @@ void reload_read_cfg(void)
 	    StrAllocCopy(LYCookieFile_flag, LYCookieFile);
 	    StrAllocCopy(LYCookieSaveFile_flag, LYCookieSaveFile);
 	}
-#endif
-
 #ifdef USE_CHARSET_CHOICE
 	custom_assumed_doc_charset = FALSE;
 	custom_display_charset = FALSE;
@@ -2414,7 +2412,6 @@ void reload_read_cfg(void)
 	 * a major problem: file paths
 	 * like lynx_save_space, LYCookieFile etc.
 	 */
-#ifdef USE_PERSISTENT_COOKIES
 	/* restore old settings */
 	if (persistent_cookies != persistent_cookies_flag) {
 	    persistent_cookies = persistent_cookies_flag;
@@ -2434,9 +2431,8 @@ void reload_read_cfg(void)
 	    FREE(LYCookieFile_flag);
 	    FREE(LYCookieSaveFile_flag);
 	}
-#endif
-
     }
+#endif /* USE_PERSISTENT_COOKIES */
 }
 #endif /* !NO_CONFIG_INFO */