about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2002-01-06 20:12:10 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2002-01-06 20:12:10 -0500
commit8df98234eab86f6b1027425f4b57cb6d4ca471ca (patch)
tree25a1c4a9808f0f7aba448259fbc7f55f0e1e31c7 /src
parentd83d4af153de5a3cfacc4ce014183fd36e0cd920 (diff)
downloadlynx-snapshots-8df98234eab86f6b1027425f4b57cb6d4ca471ca.tar.gz
snapshot of project "lynx", label v2-8-5dev_7
Diffstat (limited to 'src')
-rw-r--r--src/LYGetFile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index ce0bb79b..cb52fcb5 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -1250,7 +1250,7 @@ PUBLIC int follow_link_number ARGS4(
     */
    if (*num > 0) {
 	int info;
-	char *text;
+	char *text = NULL;
 
 	/*
 	 *  Get the lname, and hightext, directly from www
@@ -1268,7 +1268,8 @@ PUBLIC int follow_link_number ARGS4(
 			     &new_link,
 			     &text,
 			     &links[cur].lname);
-	LYSetHilite(cur, text);
+	if (text != NULL)
+	    LYSetHilite(cur, text);
 	if (info == WWW_INTERN_LINK_TYPE) {
 	    links[cur].type = WWW_INTERN_LINK_TYPE;
 	    return(DO_LINK_STUFF);