[Freeswitch-svn] [commit] r3156 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
Freeswitch SVN
mikej at freeswitch.org
Sun Oct 22 11:46:23 EDT 2006
Author: mikej
Date: Sun Oct 22 11:46:23 2006
New Revision: 3156
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Log:
initialize to null so we can check for null before we free.
Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Sun Oct 22 11:46:23 2006
@@ -1975,7 +1975,7 @@
static void do_vcard(ldl_handle_t *handle, char *to, char *from, char *id)
{
char *params = NULL, *real_to, *to_user, *xmlstr = NULL, *to_host = NULL;
- switch_xml_t domain, xml, user, vcard;
+ switch_xml_t domain, xml = NULL, user, vcard;
if (!strncasecmp(to, "user+", 5)) {
real_to = to + 5;
More information about the Freeswitch-svn
mailing list