[asterisk-commits] murf: branch 1.6.1 r174440 - /branches/1.6.1/apps/app_osplookup.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 9 23:13:15 CST 2009


Author: murf
Date: Mon Feb  9 23:13:15 2009
New Revision: 174440

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174440
Log:
This patch corrects warnings which seem to appear
only on 64-bit compilers, gcc-4.3.2.


Modified:
    branches/1.6.1/apps/app_osplookup.c

Modified: branches/1.6.1/apps/app_osplookup.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/apps/app_osplookup.c?view=diff&rev=174440&r1=174439&r2=174440
==============================================================================
--- branches/1.6.1/apps/app_osplookup.c (original)
+++ branches/1.6.1/apps/app_osplookup.c Mon Feb  9 23:13:15 2009
@@ -713,7 +713,7 @@
 	unsigned int* timelimit)
 {
 	int res;
-	struct osp_provider* p;
+	struct osp_provider* p = NULL;
 	char dest[OSP_NORSTR_SIZE];
 
 	*transaction = OSP_INVALID_HANDLE;
@@ -861,7 +861,7 @@
 	struct osp_result* result)
 {
 	int res;
-	struct osp_provider* p;
+	struct osp_provider* p = NULL;
 	char source[OSP_NORSTR_SIZE];
 	char callingnum[OSP_NORSTR_SIZE];
 	char callednum[OSP_NORSTR_SIZE];
@@ -1076,7 +1076,7 @@
 	struct osp_result* result)
 {
 	int res;
-	struct osp_provider* p;
+	struct osp_provider* p = NULL;
 	char callingnum[OSP_NORSTR_SIZE];
 	char callednum[OSP_NORSTR_SIZE];
 	char destination[OSP_NORSTR_SIZE];




More information about the asterisk-commits mailing list