[Commits] [SCM] claws branch, master, updated. 3.16.0-250-g6a09dd4

ticho at claws-mail.org ticho at claws-mail.org
Fri Aug 3 09:24:45 CEST 2018


The branch, master has been updated
       via  6a09dd4c2adee64324ebe610207f3b8f712cd1d3 (commit)
      from  5b0e5014b16e2df843db0f9fe2ae58724025ab25 (commit)

Summary of changes:
 src/plugins/rssyl/rssyl_feed_props.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 6a09dd4c2adee64324ebe610207f3b8f712cd1d3
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Fri Aug 3 09:24:29 2018 +0200

    Fix two GTK runtime warnings in RSSyl feed properties dialog.

diff --git a/src/plugins/rssyl/rssyl_feed_props.c b/src/plugins/rssyl/rssyl_feed_props.c
index 112640e..ab079c0 100644
--- a/src/plugins/rssyl/rssyl_feed_props.c
+++ b/src/plugins/rssyl/rssyl_feed_props.c
@@ -274,13 +274,14 @@ void rssyl_gtk_prop(RFolderItem *ritem)
 	/* Auth username */
 	feedprop->auth_username = gtk_entry_new();
 	gtk_entry_set_text(GTK_ENTRY(feedprop->auth_username),
-			ritem->auth->username);
+			(ritem->auth->username != NULL ? ritem->auth->username : ""));
 
 	/* Auth password */
 	feedprop->auth_password = gtk_entry_new();
 	gtk_entry_set_visibility(GTK_ENTRY(feedprop->auth_password), FALSE);
 	gchar *pwd = rssyl_passwd_get(ritem);
-	gtk_entry_set_text(GTK_ENTRY(feedprop->auth_password), pwd);
+	gtk_entry_set_text(GTK_ENTRY(feedprop->auth_password),
+			(pwd != NULL ? pwd : ""));
 	if (pwd != NULL) {
 		memset(pwd, 0, strlen(pwd));
 		g_free(pwd);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list