about summary refs log tree commit diff stats
path: root/src/LYBookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYBookmark.c')
-rw-r--r--src/LYBookmark.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/LYBookmark.c b/src/LYBookmark.c
index fcaf6fa1..c3116ef6 100644
--- a/src/LYBookmark.c
+++ b/src/LYBookmark.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYBookmark.c,v 1.77 2018/03/05 22:32:14 tom Exp $
+ * $LynxId: LYBookmark.c,v 1.78 2018/03/18 19:27:30 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAlert.h>
@@ -250,7 +250,7 @@ void save_bookmark_link(const char *address,
      * If BookmarkPage is NULL, something went wrong, so ignore the request.  -
      * FM
      */
-    if (BookmarkPage == NULL) {
+    if (isEmpty(BookmarkPage)) {
 	FREE(bookmark_URL);
 	return;
     }
@@ -261,9 +261,9 @@ void save_bookmark_link(const char *address,
      */
     if (LYMultiBookmarks != MBM_OFF) {
 	const char *url = HTLoadedDocumentURL();
-	const char *page = (*BookmarkPage == '.')
-	? (BookmarkPage + 1)
-	: BookmarkPage;
+	const char *page = ((*BookmarkPage == '.')
+			    ? (BookmarkPage + 1)
+			    : BookmarkPage);
 
 	if (strstr(url, page) != NULL) {
 	    LYMBM_statusline(MULTIBOOKMARKS_SELF);
@@ -898,7 +898,7 @@ int select_menu_multi_bookmarks(void)
 		/*
 		 * See if we have a bookmark like that.
 		 */
-		if (MBM_A_subbookmark[d] != NULL)
+		if (non_empty(MBM_A_subbookmark[d]))
 		    return (d);
 
 		show_bookmark_not_defined();
@@ -1116,7 +1116,7 @@ static char *title_convert8bit(const char *Title)
 void set_default_bookmark_page(char *value)
 {
     if (value != 0) {
-	if (bookmark_page == 0
+	if (bookmark_page == NULL
 	    || strcmp(bookmark_page, value)) {
 	    StrAllocCopy(bookmark_page, value);
 	}