]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
These small fixes prevent compiler warnings with ubuntu 8.10's gcc-4.3.2, which tend...
authorSteve Murphy <murf@digium.com>
Thu, 26 Feb 2009 17:45:22 +0000 (17:45 +0000)
committerSteve Murphy <murf@digium.com>
Thu, 26 Feb 2009 17:45:22 +0000 (17:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178870 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_osplookup.c
apps/app_rpt.c

index 3c2b2ea19f45f5a0a215f5a4ff18eed79e9da44a..29b275de48394cea0e3c9a4467aeaf9fc92edf6d 100644 (file)
@@ -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];
index 322794e8d7b48b4907a8633ae49a4c6386960ed1..c62ab992455640b48c5036aabbfca66b5dad804d 100644 (file)
@@ -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;