[asterisk-commits] mmichelson: branch mmichelson/features_config r390731 - /team/mmichelson/feat...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 6 15:40:24 CDT 2013


Author: mmichelson
Date: Thu Jun  6 15:40:22 2013
New Revision: 390731

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390731
Log:
Initialize string fields on general config.


Modified:
    team/mmichelson/features_config/main/features_config.c

Modified: team/mmichelson/features_config/main/features_config.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/features_config/main/features_config.c?view=diff&rev=390731&r1=390730&r2=390731
==============================================================================
--- team/mmichelson/features_config/main/features_config.c (original)
+++ team/mmichelson/features_config/main/features_config.c Thu Jun  6 15:40:22 2013
@@ -393,7 +393,7 @@
 	}
 
 	cfg->general = ao2_alloc(sizeof(*cfg->general), NULL);
-	if (!cfg->general) {
+	if (!cfg->general || ast_string_field_init(cfg->general, 32)) {
 		return NULL;
 	}
 




More information about the asterisk-commits mailing list