fix mod_xml_rpc build warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15878 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-12-10 21:35:29 +00:00
parent 4f8820ae09
commit 816ad67637
4 changed files with 13 additions and 13 deletions

View File

@ -210,7 +210,7 @@ listSignatures(xmlrpc_env * const envP,
cursorP = &sigListString[0];
while (!envP->fault_occurred && *cursorP != '\0') {
struct xmlrpc_signature * signatureP;
struct xmlrpc_signature * signatureP = NULL;
parseOneSignature(envP, cursorP, &signatureP, &cursorP);

View File

@ -188,7 +188,7 @@ parseMember(xmlrpc_env * const envP,
"<member> element has %u children. Only one <name> and "
"one <value> make sense.", childCount);
else {
xml_element * nameElemP;
xml_element * nameElemP = NULL;
getNameChild(envP, memberP, &nameElemP);
@ -196,7 +196,7 @@ parseMember(xmlrpc_env * const envP,
parseName(envP, nameElemP, keyPP);
if (!envP->fault_occurred) {
xml_element * valueElemP;
xml_element * valueElemP = NULL;
getValueChild(envP, memberP, &valueElemP);
@ -242,7 +242,7 @@ parseStruct(xmlrpc_env * const envP,
setParseFault(envP, "<%s> element found where only <member> "
"makes sense", elemName);
else {
xmlrpc_value * keyP;
xmlrpc_value * keyP = NULL;
xmlrpc_value * valueP;
parseMember(envP, members[i], maxRecursion, &keyP, &valueP);
@ -414,10 +414,10 @@ parseDoubleString(xmlrpc_env * const envP,
Design note: in my experiments, using strtod() was 10 times
slower than using this function.
*/
const char * mantissa;
const char * mantissaEnd;
const char * fraction;
const char * fractionEnd;
const char * mantissa = NULL;
const char * mantissaEnd = NULL;
const char * fraction = NULL;
const char * fractionEnd = NULL;
scanAndValidateDoubleString(envP, string, &mantissa, &mantissaEnd,
&fraction, &fractionEnd);
@ -500,7 +500,7 @@ parseDouble(xmlrpc_env * const envP,
'str' is that content.
-----------------------------------------------------------------------------*/
xmlrpc_env parseEnv;
double valueDouble;
double valueDouble = 0;
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_PTR_OK(str);

View File

@ -452,7 +452,7 @@ getSignatureList(xmlrpc_env * const envP,
signatureP && !envP->fault_occurred;
signatureP = signatureP->nextP) {
xmlrpc_value * signatureVP;
xmlrpc_value * signatureVP = NULL;
buildSignatureValue(envP, signatureP, &signatureVP);

View File

@ -471,7 +471,7 @@ processCall(TSession * const abyssSessionP,
&env, XMLRPC_LIMIT_EXCEEDED_ERROR,
"XML-RPC request too large (%d bytes)", contentSize);
else {
xmlrpc_mem_block * body;
xmlrpc_mem_block * body = NULL;
/* Read XML data off the wire. */
getBody(&env, abyssSessionP, contentSize, trace, &body);
if (!env.fault_occurred) {
@ -890,8 +890,8 @@ createServerBare(xmlrpc_env * const envP,
to use.
-----------------------------------------------------------------------------*/
bool socketBound;
unsigned int portNumber;
TOsSocket socketFd;
unsigned int portNumber = 0;
TOsSocket socketFd = NULL;
const char * logFileName;
extractServerCreateParms(envP, parmsP, parmSize,