[project @ 2005-03-20 23:02:00 by rjw]

URL nodes without a title use the associated URL.

svn path=/import/netsurf/; revision=1563
This commit is contained in:
Richard Wilson 2005-03-20 23:02:00 +00:00
parent b718ee9158
commit dfdf4741f8
1 changed files with 4 additions and 2 deletions

View File

@ -980,8 +980,9 @@ struct node *tree_create_URL_node(struct node *parent, const char *title,
struct node *node;
struct node_element *element;
assert(title);
assert(url);
if (!title)
title = url;
node = tree_create_leaf_node(parent, title);
if (!node)
@ -1035,8 +1036,9 @@ struct node *tree_create_URL_node_brief(struct node *parent, const char *title,
struct node *node;
struct node_element *element;
assert(title);
assert(url);
if (!title)
title = url;
node = tree_create_leaf_node(parent, title);
if (!node)