summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 18:58:02 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 18:58:37 +0200
commit947a580e384f91b18e9ebe7f4e4d9c4e07bfaa10 (patch)
treeaf03c2d84fec5cf04e79c14154f0ed77cab701ef
parente05a704154712184d73d85a3033e01337a11b380 (diff)
Bookmarks: Crash when creating a bookmark
IssueID #402
-rw-r--r--src/bookmarks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c
index d4b20162..5e943387 100644
--- a/src/bookmarks.c
+++ b/src/bookmarks.c
@@ -410,7 +410,7 @@ iBool updateBookmarkIcon_Bookmarks(iBookmarks *d, const iString *url, iChar icon
410 410
411void setRecentFolder_Bookmarks(iBookmarks *d, uint32_t folderId) { 411void setRecentFolder_Bookmarks(iBookmarks *d, uint32_t folderId) {
412 iBookmark *bm = get_Bookmarks(d, folderId); 412 iBookmark *bm = get_Bookmarks(d, folderId);
413 if (isFolder_Bookmark(bm)) { 413 if (bm && isFolder_Bookmark(bm)) {
414 d->recentFolderId = folderId; 414 d->recentFolderId = folderId;
415 } 415 }
416 else { 416 else {