[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-326-g9869b8839
wwp at claws-mail.org
wwp at claws-mail.org
Thu Oct 7 09:16:31 CEST 2021
The branch, gtk3 has been updated
via 9869b88395d4977eea4773953b41d337b7994949 (commit)
from 03565af05e5079d02c31202976a4f926ccd64a4b (commit)
Summary of changes:
src/export.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 9869b88395d4977eea4773953b41d337b7994949
Author: wwp <subscript at free.fr>
Date: Thu Oct 7 09:14:02 2021 +0200
Fix CID 1491311: dereference after null check.
Wrong logic there: we should fail if pointers are null, not only if strings are empty,
even though gtk_entry_get_text should never return null).
diff --git a/src/export.c b/src/export.c
index 04feb7ed8..56193fc16 100644
--- a/src/export.c
+++ b/src/export.c
@@ -194,12 +194,12 @@ static void export_ok_cb(GtkWidget *widget, gpointer data)
srcdir = gtk_entry_get_text(GTK_ENTRY(src_entry));
utf8mbox = gtk_entry_get_text(GTK_ENTRY(file_entry));
- if (utf8mbox && !*utf8mbox) {
+ if (!utf8mbox || !*utf8mbox) {
alertpanel_error(_("Target mbox filename can't be left empty."));
gtk_widget_grab_focus(file_entry);
return;
}
- if (srcdir && !*srcdir) {
+ if (!srcdir || !*srcdir) {
alertpanel_error(_("Source folder can't be left empty."));
gtk_widget_grab_focus(src_entry);
return;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list