[asterisk-commits] murf: trunk r178870 - in /trunk/apps: app_osplookup.c app_rpt.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 26 11:45:25 CST 2009


Author: murf
Date: Thu Feb 26 11:45:22 2009
New Revision: 178870

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178870
Log:
These small fixes prevent compiler warnings with ubuntu 8.10's gcc-4.3.2, which tend to break my dev-mode build. Not a problem in 1.6.x.

Modified:
    trunk/apps/app_osplookup.c
    trunk/apps/app_rpt.c

Modified: trunk/apps/app_osplookup.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_osplookup.c?view=diff&rev=178870&r1=178869&r2=178870
==============================================================================
--- trunk/apps/app_osplookup.c (original)
+++ trunk/apps/app_osplookup.c Thu Feb 26 11:45:22 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];

Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=178870&r1=178869&r2=178870
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Thu Feb 26 11:45:22 2009
@@ -14680,7 +14680,7 @@
 
 			if(myrpt->remote){ /* Remote base ? */
 				char *loginuser, *loginlevel, *freq, *rxpl, *txpl, *modestr;
-				char offset,powerlevel,rxplon,txplon,remoteon,remmode,reportfmstuff;
+				char offset = 0, powerlevel = 0, rxplon = 0, txplon = 0, remoteon, remmode = 0, reportfmstuff;
 				char offsetc,powerlevelc;
 
 				loginuser = loginlevel = freq = rxpl = txpl = NULL;




More information about the asterisk-commits mailing list