Skip to content
Snippets Groups Projects
Commit b389d021 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

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

parent 0cfe09f6
No related branches found
No related tags found
No related merge requests found
......@@ -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 *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment