Skip to content

Commit

Permalink
janssonrpcc: use size of data type to allocate memory
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 29, 2017
1 parent b46d113 commit dba589a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/janssonrpcc/janssonrpcc_mod.c
Expand Up @@ -225,7 +225,7 @@ void mod_destroy(void)
int parse_server_param(modparam_t type, void* val)
{
if(global_server_group == NULL) {
global_server_group = shm_malloc(sizeof(void*));
global_server_group = (jsonrpc_server_group_t**)shm_malloc(sizeof(jsonrpc_server_group_t*));
*global_server_group = NULL;
}
return jsonrpc_parse_server((char*)val, global_server_group);
Expand Down

0 comments on commit dba589a

Please sign in to comment.