[svn-commits] mnicholson: branch group/newcdr r202486 - /team/group/newcdr/main/cel.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jun 22 12:02:56 CDT 2009


Author: mnicholson
Date: Mon Jun 22 12:02:53 2009
New Revision: 202486

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202486
Log:
Initilize user_defined_name to prevent a crash in cel_adaptive_odbc.

Modified:
    team/group/newcdr/main/cel.c

Modified: team/group/newcdr/main/cel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/main/cel.c?view=diff&rev=202486&r1=202485&r2=202486
==============================================================================
--- team/group/newcdr/main/cel.c (original)
+++ team/group/newcdr/main/cel.c Mon Jun 22 12:02:53 2009
@@ -554,6 +554,8 @@
 	r->event_time.tv_sec = ast_event_get_ie_uint(e, AST_EVENT_IE_CEL_EVENT_TIME);
 	r->event_time.tv_usec = ast_event_get_ie_uint(e, AST_EVENT_IE_CEL_EVENT_TIME_USEC);
 
+	r->user_defined_name = "";
+
 	if (r->event_type == AST_CEL_USER_DEFINED) {
 		r->user_defined_name = ast_event_get_ie_str(e, AST_EVENT_IE_CEL_USEREVENT_NAME);
 		r->event_name = r->user_defined_name;




More information about the svn-commits mailing list