Commit b389d021 authored by Alexandre Bourget's avatar Alexandre Bourget

Fix 0000039: SFLphone-gtk crashes when receiving a call without a FROM name.

parent 0cfe09f6
......@@ -115,9 +115,12 @@ gchar *
call_get_name (const call_t * c)
{
gchar * end = g_strrstr(c->from, "\"");
gchar * name = c->from +1;
name = g_strndup(name, end - name );
return name;
if (!end) {
return g_strndup(c->from, 0);
} else {
gchar * name = c->from +1;
return g_strndup(name, end - name);
}
}
gchar *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment