[asterisk-commits] mmichelson: branch group/CCSS r214610 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 28 11:01:08 CDT 2009


Author: mmichelson
Date: Fri Aug 28 11:01:05 2009
New Revision: 214610

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=214610
Log:
Bugfix: It helps to initialize the args in addition to allocating
them.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=214610&r1=214609&r2=214610
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Fri Aug 28 11:01:05 2009
@@ -738,7 +738,7 @@
 
 struct cc_state_change_args {
 	enum ast_cc_state state;
-	const unsigned int core_id;
+	unsigned int core_id;
 	char debug[1];
 };
 
@@ -848,6 +848,10 @@
 		return -1;
 	}
 
+	args->state = state;
+	args->core_id = core_id;
+	strcpy(args->debug, debug);
+
 	ast_log(LOG_NOTICE, "Placing request for state change to state %d\n", state);
 	return ast_taskprocessor_push(cc_core_taskprocessor, cc_do_state_change, args);
 }




More information about the asterisk-commits mailing list