use ccalloc in input bindings
This commit is contained in:
		@@ -74,7 +74,7 @@ static ActionHashItem *input_add_action(char const *action_name) {
 | 
			
		||||
    SDL_assert(action_name);
 | 
			
		||||
 | 
			
		||||
    Action new_action = { 0 };
 | 
			
		||||
    new_action.bindings = SDL_calloc(ctx.keybind_slots, sizeof *new_action.bindings);
 | 
			
		||||
    new_action.bindings = ccalloc(ctx.keybind_slots, sizeof *new_action.bindings);
 | 
			
		||||
    shput(ctx.input.action_hash, action_name, new_action);
 | 
			
		||||
    return shgetp(ctx.input.action_hash, action_name);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user