mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-01 00:34:31 +03:00
Ensure there's a title.
This commit is contained in:
parent
9919b77f19
commit
d398caf146
@ -134,9 +134,11 @@ static nserror global_history_create_treeview_field_data(
|
||||
struct global_history_entry *e,
|
||||
const struct url_data *data)
|
||||
{
|
||||
const char *title = (data->title != NULL) ? data->title : "<No title>";
|
||||
|
||||
e->data[0].field = gh_ctx.fields[0].field;
|
||||
e->data[0].value = strdup(data->title);
|
||||
e->data[0].value_len = strlen(data->title);
|
||||
e->data[0].value = strdup(title);
|
||||
e->data[0].value_len = strlen(title);
|
||||
|
||||
e->data[1].field = gh_ctx.fields[1].field;
|
||||
e->data[1].value = nsurl_access(e->url);
|
||||
|
Loading…
Reference in New Issue
Block a user