# HG changeset patch # User Eric Warmenhoven # Date 999043499 0 # Node ID 98c434792ab72593c1c7c989c6659b959b19a04a # Parent 66c7c54153777614e816b07af189423322b88d8e [gaim-migrate @ 2198] la de dah. committer: Tailor Script diff -r 66c7c5415377 -r 98c434792ab7 src/gtkimhtml.c --- 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