From b8b49de6ce7a4fe5aad7d89f3a099a89d2022652 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 26 May 2006 20:19:01 +0000 Subject: If 'str' is empty, continue immediately rather than trying to parse it a 2006-05-26 Jeffrey Stedfast * e-msg-composer.c (drop_action): If 'str' is empty, continue immediately rather than trying to parse it a URL. svn path=/trunk/; revision=32040 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 317e305386..1834559fc4 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2006-05-26 Jeffrey Stedfast + + * e-msg-composer.c (drop_action): If 'str' is empty, continue + immediately rather than trying to parse it a URL. + 2006-05-25 Jeffrey Stedfast * e-msg-composer.c (drop_action): Instead of g_free()ing 'str' in diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index f77c947ea4..512acab0dc 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2924,8 +2924,9 @@ drop_action(EMsgComposer *composer, GdkDragContext *context, guint32 action, Gtk CamelURL *url; CamelMimeMessage *msg; char *content_type; - int i, success=FALSE, delete=FALSE; + int i, success = FALSE, delete = FALSE; EMsgComposerPrivate *p = composer->priv; + gboolean is_image; switch (info) { case DND_TYPE_MESSAGE_RFC822: @@ -2954,8 +2955,8 @@ drop_action(EMsgComposer *composer, GdkDragContext *context, guint32 action, Gtk for (i = 0; urls[i] != NULL; i++) { str = g_strstrip (urls[i]); - if (urls[i][0] == '#') { - g_free(str); + if (str[0] == '#' || str[0] == '\0') { + g_free (str); continue; } -- cgit