1
0
Fork 0

[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
1 changed files with 1 additions and 1 deletions

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;