[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

View File

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