about summary refs log tree commit diff stats
path: root/src/LYGetFile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYGetFile.c')
-rw-r--r--src/LYGetFile.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index 3b06cc92..18e1f788 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYGetFile.c,v 1.94 2016/11/24 15:35:29 tom Exp $ */
+/* $LynxId: LYGetFile.c,v 1.95 2018/03/18 19:34:45 tom Exp $ */
 #include <HTUtils.h>
 #include <HTTP.h>
 #include <HTAnchor.h>		/* Anchor class */
@@ -199,15 +199,16 @@ int getfile(DocInfo *doc, int *target)
 		  url_type == LYNXMESSAGES_URL_TYPE ||
 		  (url_type == LYNXOPTIONS_URL_TYPE &&
 		   WWWDoc.post_data) ||
-		  0 == STRNADDRCOMP(WWWDoc.address, helpfilepath,
-				    strlen(helpfilepath)) ||
-		  (lynxlistfile != NULL &&
+		  (non_empty(helpfilepath) &&
+		   0 == STRNADDRCOMP(WWWDoc.address, helpfilepath,
+				     strlen(helpfilepath))) ||
+		  (non_empty(lynxlistfile) &&
 		   0 == STRNADDRCOMP(WWWDoc.address, lynxlistfile,
 				     strlen(lynxlistfile))) ||
-		  (lynxlinksfile != NULL &&
+		  (non_empty(lynxlinksfile) &&
 		   0 == STRNADDRCOMP(WWWDoc.address, lynxlinksfile,
 				     strlen(lynxlinksfile))) ||
-		  (lynxjumpfile != NULL &&
+		  (non_empty(lynxjumpfile) &&
 		   0 == STRNADDRCOMP(WWWDoc.address, lynxjumpfile,
 				     strlen(lynxjumpfile))))) {
 		HTUserMsg(NOT_HTTP_URL_OR_ACTION);