[Freeswitch-svn] [commit] r10407 - freeswitch/trunk/src/mod/applications/mod_enum

FreeSWITCH SVN anthm at freeswitch.org
Fri Nov 14 12:43:32 PST 2008


Author: anthm
Date: Fri Nov 14 15:43:32 2008
New Revision: 10407

Log:
update

Modified:
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Fri Nov 14 15:43:32 2008
@@ -461,6 +461,8 @@
 	struct dns_ctx *nctx = NULL;
 	char *num, *mnum = NULL, *mroot = NULL, *p;
 
+	*results = NULL;
+
 	mnum = switch_mprintf("%s%s", *in == '+' ? "" : "+", in);
 
 	if ((p = strchr(mnum, '*'))) {
@@ -563,7 +565,7 @@
 SWITCH_STANDARD_DIALPLAN(enum_dialplan_hunt)
 {
 	switch_caller_extension_t *extension = NULL;
-	enum_record_t *results, *rp;
+	enum_record_t *results = NULL, *rp;
 	switch_channel_t *channel = switch_core_session_get_channel(session);
 	char *dp = (char *) arg;
 



More information about the Freeswitch-svn mailing list