eion/purple-hangouts

Parents edbb22ad8a7c
Children c0d26f3bf2e7
Fix for another cause of crashes when sending blank "/me" messages
--- a/hangouts_conversation.c Wed Jun 28 10:05:21 2017 +1200
+++ b/hangouts_conversation.c Wed Jun 28 12:35:03 2017 +1200
@@ -1047,7 +1047,14 @@
gboolean is_link = FALSE;
gchar *last_link = NULL;
- g_return_val_if_fail(c && *c, NULL);
+ if (c == NULL || *c == '\0') {
+ g_warn_if_reached();
+
+ if (segments_count != NULL) {
+ *segments_count = 0;
+ }
+ return NULL;
+ }
text_content = g_string_new("");
segment = g_new0(Segment, 1);