Commit c342947a authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3097] Fix backspace crash sflphone-cliebnt-gnome during call transfer

parent 5fd75db9
......@@ -639,7 +639,9 @@ process_dialing(callable_obj_t * c, guint keyval, gchar * key)
if (c->_state == CALL_STATE_TRANSFERT)
{
c->_trsft_to = g_strndup (c->_trsft_to, strlen(c->_trsft_to) - 1);
// Process backspace if and only if string not NULL
if(strlen(c->_trsft_to) > 0)
c->_trsft_to = g_strndup (c->_trsft_to, strlen(c->_trsft_to) - 1);
}
else
{
......
Supports Markdown
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