about summary refs log tree commit diff stats
path: root/src/LYGetFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-11-07 18:00:30 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2004-11-07 18:00:30 -0500
commitb52ca53f448d0f9c01708a6ce2b03be3a71d3993 (patch)
treeef7406c859d566bc94cd1a77e9d5b4d539c64436 /src/LYGetFile.c
parent1c6757afa67bdaba78ca9d902165126e54bd8061 (diff)
downloadlynx-snapshots-b52ca53f448d0f9c01708a6ce2b03be3a71d3993.tar.gz
snapshot of project "lynx", label v2-8-6dev_8
Diffstat (limited to 'src/LYGetFile.c')
-rw-r--r--src/LYGetFile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index 48d63959..0627a81a 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -365,7 +365,7 @@ int getfile(DocInfo *doc)
 
 	if (LYNoRefererHeader == FALSE &&
 	    LYNoRefererForThis == FALSE) {
-	    char *ref_url = HTLoadedDocumentURL();
+	    const char *ref_url = HTLoadedDocumentURL();
 
 	    if (isLYNXIMGMAP(ref_url))
 		ref_url += LEN_LYNXIMGMAP;
@@ -534,7 +534,7 @@ int getfile(DocInfo *doc)
 		    title = HTAnchor_title(tmpanchor);
 		} else if (HTMainAnchor && !LYUserSpecifiedURL) {
 		    title = HTAnchor_subject(HTMainAnchor);
-		    if (title && *title) {
+		    if (non_empty(title)) {
 			if (strncasecomp(title, "Re:", 3)) {
 			    StrAllocCopy(tmptitle, "Re: ");
 			    StrAllocCat(tmptitle, title);
@@ -851,7 +851,7 @@ int getfile(DocInfo *doc)
 		    temp = HTParse(use_this_url_instead,
 				   WWWDoc.address,
 				   PARSE_ALL);
-		    if (temp && *temp) {
+		    if (non_empty(temp)) {
 			StrAllocCopy(use_this_url_instead, temp);
 		    }
 		    FREE(temp);