Do ignore empty recipients when checking names
authorSergio Villar Senín <svillar@igalia.com>
Fri, 18 Dec 2009 12:04:13 +0000 (13:04 +0100)
committerSergio Villar Senín <svillar@igalia.com>
Fri, 18 Dec 2009 12:04:13 +0000 (13:04 +0100)
Fixes NB#139674

src/modest-text-utils.c

index 004e6b5..fb4da84 100644 (file)
@@ -652,7 +652,7 @@ modest_text_utils_get_addresses_indexes (const gchar *addresses, GSList **start_
                        gchar *next_char = g_utf8_next_char (cur);
 
                        if (!g_utf8_strchr (start, (cur - start + 1), g_utf8_get_char ("@")) &&
-                           next_char && *next_char != '\n')
+                           next_char && *next_char != '\n' && *next_char != '\0')
                                continue;
 
                        start_index = g_new0 (gint, 1);