1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[bookmarks] null_or_stracpy to avoid NULL title. Refs #227

This commit is contained in:
Witold Filipczyk 2023-04-30 20:26:44 +02:00
parent c8e0dd9e47
commit fe368c8181

View File

@ -312,7 +312,7 @@ init_bookmark(struct bookmark *root, const char *title, const char *url)
bm = (struct bookmark *)mem_calloc(1, sizeof(*bm));
if (!bm) return NULL;
bm->title = stracpy(title);
bm->title = null_or_stracpy(title);
if (!bm->title) {
mem_free(bm);
return NULL;