aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-26 17:45:22 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-26 17:45:22 +0000
commitb94617c172b3c093ea04111341394eceaaacee48 (patch)
tree19dfa60963ee50648f7aa5437b018df98ca752d3
parentc7766afad1bbdbb60b7b7b0e349f4c3b347a0b23 (diff)
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.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@178870 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_osplookup.c6
-rw-r--r--apps/app_rpt.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c
index 3c2b2ea19..29b275de4 100644
--- a/apps/app_osplookup.c
+++ b/apps/app_osplookup.c
@@ -713,7 +713,7 @@ static int osp_auth(
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 @@ static int osp_lookup(
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 @@ static int osp_next(
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];
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index 322794e8d..c62ab9924 100644
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -14680,7 +14680,7 @@ static int rpt_manager_do_stats(struct mansession *s, const struct message *m, c
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;