http://code.google.com/p/sipxtapi/source/detail?r=1420
Modified:
/trunk/sipXtackLib/src/net/SipSrvLookup.cpp
=======================================
--- /trunk/sipXtackLib/src/net/SipSrvLookup.cpp Sun Jan 24 03:44:15 2010
+++ /trunk/sipXtackLib/src/net/SipSrvLookup.cpp Mon Feb 7 14:12:22 2011
@@ -538,8 +538,8 @@
const char* srcIp)
{
// To hold the return of res_query_and_parse.
- res_response* response;
- const char* canonical_name;
+ res_response* response = NULL;
+ const char* canonical_name = NULL;
// Construct buffer to hold the key string for the lookup:
// _service._protocol.domain
@@ -641,8 +641,8 @@
)
{
// To hold the return of res_query_and_parse.
- res_response* response;
- const char* canonical_name;
+ res_response* response = NULL;
+ const char* canonical_name = NULL;
// Make the query and parse the response.
SipSrvLookup::res_query_and_parse(domain, T_A, in_response,
canonical_name,