Mercurial > pidgin.yaz
changeset 2188:98c434792ab7
[gaim-migrate @ 2198]
la de dah.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 29 Aug 2001 00:04:59 +0000 |
parents | 66c7c5415377 |
children | dca8e00d7de0 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Tue Aug 28 19:26:24 2001 +0000 +++ b/src/gtkimhtml.c Wed Aug 29 00:04:59 2001 +0000 @@ -1373,13 +1373,11 @@ g_return_if_fail (imhtml->selected_text != NULL); g_return_if_fail (imhtml->selected_text->str != NULL); - if (imhtml->selected_text->len <= 0) { - string = NULL; - length = 0; - } else { - string = g_strdup (imhtml->selected_text->str); - length = strlen (string); - } + if (imhtml->selected_text->len <= 0) + return; + + string = g_strdup (imhtml->selected_text->str); + length = strlen (string); if (sel_info == TARGET_STRING) { gtk_selection_data_set (sel_data, @@ -1398,8 +1396,7 @@ gdk_free_compound_text (text); } - if (string) - g_free (string); + g_free (string); } static gint