Revision: 2214 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2214&view=re... Author: frlan Date: 2011-09-25 16:59:59 +0000 (Sun, 25 Sep 2011) Log Message: ----------- GeanySendMail: Adding a workaround for a weird issue in connection with utils_string_replace_all().
Modified Paths: -------------- trunk/geany-plugins/geanysendmail/ChangeLog trunk/geany-plugins/geanysendmail/src/geanysendmail.c
Modified: trunk/geany-plugins/geanysendmail/ChangeLog =================================================================== --- trunk/geany-plugins/geanysendmail/ChangeLog 2011-09-25 10:57:57 UTC (rev 2213) +++ trunk/geany-plugins/geanysendmail/ChangeLog 2011-09-25 16:59:59 UTC (rev 2214) @@ -1,3 +1,10 @@ +2011-09-25 Frank Lanitz frlan@frank.uvena.de + + * Adding a workaround for a weird issue in connection with + utils_string_replace_all(). + + + 2011-06-21 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Deprecate ui_widget_set_tooltip_text() in favor of
Modified: trunk/geany-plugins/geanysendmail/src/geanysendmail.c =================================================================== --- trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2011-09-25 10:57:57 UTC (rev 2213) +++ trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2011-09-25 16:59:59 UTC (rev 2214) @@ -96,7 +96,6 @@ { locale_filename = utils_get_locale_from_utf8(doc->file_name); cmd_str = g_string_new(mailer); - if ((use_address_dialog == TRUE) && (g_strrstr(mailer, "%r") != NULL)) { gchar *input = dialogs_show_input(_("Recipient's Address"), @@ -149,8 +148,11 @@ else { /* Removes %r if option was not activ but was included into command */ - utils_string_replace_all(cmd_str, "%r", NULL); + gchar *tmp_fix; + tmp_fix = g_strdup(""); + utils_string_replace_all(cmd_str, "%r", tmp_fix); g_free(address); + g_free(tmp_fix); }
utils_string_replace_all(cmd_str, "%b", g_path_get_basename(locale_filename));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.