[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-321-g4228ee62e
wwp at claws-mail.org
wwp at claws-mail.org
Wed Oct 6 09:50:44 CEST 2021
The branch, gtk3 has been updated
via 4228ee62e4b793eb7ee536b8eb386a8b272af540 (commit)
from b3e01e3b340b1a2ced8bd50e1b8eaea9eb5dabdf (commit)
Summary of changes:
src/edittags.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 4228ee62e4b793eb7ee536b8eb386a8b272af540
Author: wwp <subscript at free.fr>
Date: Wed Oct 6 09:49:27 2021 +0200
Fix CID 1492202: dereference before null check (we usually test if gtk_editable_get_chars
returns NULL, but it should not).
diff --git a/src/edittags.c b/src/edittags.c
index 899180c3f..404d5ba4d 100644
--- a/src/edittags.c
+++ b/src/edittags.c
@@ -431,8 +431,10 @@ static gboolean find_tag_in_store(GtkTreeModel *model,
static void tags_window_add_tag(void)
{
gchar *new_tag = gtk_editable_get_chars(GTK_EDITABLE(tagswindow.add_entry), 0, -1);
+ if (!new_tag)
+ return;
g_strstrip(new_tag);
- if (new_tag && *new_tag) {
+ if (*new_tag) {
gint id;
FindTagInStore fis;
if (!(IS_NOT_RESERVED_TAG(new_tag))) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list