forked from github/server
use malloc. change indentation.
This commit is contained in:
parent
37326e4f34
commit
09f2286b82
|
@ -55,7 +55,7 @@ get_functionname(pf_generic fun)
|
|||
void
|
||||
register_function(pf_generic fun, const char * name)
|
||||
{
|
||||
function_list * fl = calloc(sizeof(function_list), 1);
|
||||
function_list * fl = (function_list *)malloc(sizeof(function_list));
|
||||
fl->next = functionlist;
|
||||
fl->fun = fun;
|
||||
fl->name = strdup(name);
|
||||
|
|
Loading…
Reference in New Issue