From 8320401d3b32ef400072106eedb3c75367e1a12b Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Mon, 29 Nov 2021 18:24:25 +0200

Subject: [PATCH 1/1] Fixed crash when creating a bookmark

The parent folder pointer was possibly uninitialized.


src/ui/sidebarwidget.c | 1 +

src/ui/util.c | 4 +++-

2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c

index 550fccde..844f6d7c 100644

--- a/src/ui/sidebarwidget.c

+++ b/src/ui/sidebarwidget.c

@@ -927,6 +927,7 @@ static void itemClicked_SidebarWidget_(iSidebarWidget *d, iSidebarItem *item, si

             }

             else {

                 insert_IntSet(d->closedFolders, item->id);

             }

             updateItems_SidebarWidget_(d);

             break;

diff --git a/src/ui/util.c b/src/ui/util.c

index baa05082..84de4b74 100644

--- a/src/ui/util.c

+++ b/src/ui/util.c

@@ -2862,8 +2862,10 @@ iWidget *makeBookmarkEditor_Widget(void) {

                                            constData_Array(folderItems),

                                            size_Array(folderItems))), alignLeft_WidgetFlag),

                  "bmed.folder");

     updateDropdownSelection_LabelWidget(

 }

 addDialogInputWithHeading_(headings, values, "${dlg.bookmark.tags}",  "bmed.tags",  iClob(inputs[2] = new_InputWidget(0)));

 addDialogInputWithHeading_(headings, values, "${dlg.bookmark.icon}",  "bmed.icon",  iClob(inputs[3] = new_InputWidget(1)));

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/release/patch/b8861fb43e65733107c54bc4f89a17b558e37f06.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
92.705306 milliseconds
Gemini-to-HTML Time
0.571076 milliseconds

This content has been proxied by September (ba2dc).