talons

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

commit 6a09dd4c2adee64324ebe610207f3b8f712cd1d3
parent 5b0e5014b16e2df843db0f9fe2ae58724025ab25
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);