[epiphany] Check if URL is NULL before setting its history title



commit 0130c7f4cd730755dc6004689ec28458f0b7cf61
Author: Jose Millan Soto <jmillan igalia com>
Date:   Wed Apr 7 11:33:04 2010 +0200

    Check if URL is NULL before setting its history title
    
    Bug #582629
    
    Signed-off-by: Xan Lopez <xan gnome org>

 embed/ephy-history.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index ae0e563..117315c 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -913,6 +913,7 @@ ephy_history_set_page_title (EphyHistory *gh,
 	LOG ("Set page title");
 
 	if (title == NULL || title[0] == '\0') return;
+	if (url == NULL) return;
 
 	node = ephy_history_get_page (gh, url);
 	if (node == NULL) return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]