talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3e49295bd11a2ac7035b17a8d4e2276ef035e5e1
parent a99fb6c9951b7b65dac6dba605078352db63c158
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri,  3 Aug 2018 09:24:29 +0200

Fix two GTK runtime warnings in RSSyl feed properties dialog.

Diffstat:
Msrc/plugins/rssyl/rssyl_feed_props.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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);