about summary refs log tree commit diff stats
path: root/src/LYMainLoop.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2010-06-18 10:58:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2010-06-18 10:58:18 -0400
commit8c493b23398b1e07fecaa540c954b169947d7a21 (patch)
tree79893c4b5d2d6aff139e521b748a0345094b6e85 /src/LYMainLoop.c
parent511bc0c05c0d5674e5d41490969e11ef5c79de8b (diff)
downloadlynx-snapshots-8c493b23398b1e07fecaa540c954b169947d7a21.tar.gz
snapshot of project "lynx", label v2-8-8dev_3f
Diffstat (limited to 'src/LYMainLoop.c')
-rw-r--r--src/LYMainLoop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 6a21d04b..df9217b2 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMainLoop.c,v 1.165 2010/06/17 10:51:11 tom Exp $
+ * $LynxId: LYMainLoop.c,v 1.166 2010/06/18 10:56:54 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -1456,7 +1456,9 @@ static int handle_LYK_ACTIVATE(int *c,
 			curdoc.address &&
 			!strcmp(lynxjumpfile, curdoc.address))) {
 		LYUserSpecifiedURL = TRUE;
-	    } else if (no_filereferer == TRUE && isFILE_URL(curdoc.address)) {
+	    } else if (no_filereferer == TRUE &&
+		       curdoc.address != NULL &&
+		       isFILE_URL(curdoc.address)) {
 		LYNoRefererForThis = TRUE;
 	    }
 	    newdoc.link = 0;