Skip to content
Snippets Groups Projects
Commit ee6612fa authored by Vivien Didelot's avatar Vivien Didelot
Browse files

gnome: calltab_init: use calloc instead of malloc

parent 95f79b5c
No related branches found
No related tags found
No related merge requests found
......@@ -36,17 +36,7 @@
calltab_t* calltab_init (gboolean searchbar_type, gchar *name)
{
calltab_t* ret;
ret = malloc (sizeof (calltab_t));
ret->store = NULL;
ret->view = NULL;
ret->tree = NULL;
ret->searchbar = NULL;
ret->callQueue = NULL;
ret->selectedCall = NULL;
ret->selectedConf = NULL;
calltab_t* ret = calloc (1, sizeof (calltab_t));
ret->_name = g_strdup (name);
calltree_create (ret, searchbar_type);
......
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