mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Convert a few places to use ast_calloc_with_stringfields where applicable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -676,11 +676,7 @@ static struct jack_data *jack_data_alloc(void) | ||||
| { | ||||
| 	struct jack_data *jack_data; | ||||
|  | ||||
| 	if (!(jack_data = ast_calloc(1, sizeof(*jack_data)))) | ||||
| 		return NULL; | ||||
|  | ||||
| 	if (ast_string_field_init(jack_data, 32)) { | ||||
| 		ast_free(jack_data); | ||||
| 	if (!(jack_data = ast_calloc_with_stringfields(1, struct jack_data, 32))) { | ||||
| 		return NULL; | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user