summaryrefslogtreecommitdiffstats
path: root/lib/libaccess
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libaccess')
-rw-r--r--lib/libaccess/aclerror.cpp2
-rw-r--r--lib/libaccess/acltools.cpp2
-rw-r--r--lib/libaccess/lasdns.cpp4
-rw-r--r--lib/libaccess/lasip.cpp4
-rw-r--r--lib/libaccess/ldapacl.cpp2
-rw-r--r--lib/libaccess/oneeval.cpp4
6 files changed, 9 insertions, 9 deletions
diff --git a/lib/libaccess/aclerror.cpp b/lib/libaccess/aclerror.cpp
index 7c1d4a26..8e94f642 100644
--- a/lib/libaccess/aclerror.cpp
+++ b/lib/libaccess/aclerror.cpp
@@ -100,7 +100,7 @@ char * ACL_Program = "NSACL"; /* ACL facility name */
void aclErrorFmt(NSErr_t * errp, char * msgbuf, int maxlen, int maxdepth)
{
NSEFrame_t * efp; /* error frame pointer */
- int len; /* length of error message text */
+ int len = 0; /* length of error message text */
int depth = 0; /* current depth */
msgbuf[0] = 0;
diff --git a/lib/libaccess/acltools.cpp b/lib/libaccess/acltools.cpp
index 9eb3292d..1b302df4 100644
--- a/lib/libaccess/acltools.cpp
+++ b/lib/libaccess/acltools.cpp
@@ -3060,7 +3060,7 @@ ACL_FileGetNameList(NSErr_t *errp, char * filename, char ***name_list)
const int block_size = 50;
int rv, list_size, list_index;
- char ** local_list;
+ char ** local_list = NULL;
char * block ;
char * name;
char * next;
diff --git a/lib/libaccess/lasdns.cpp b/lib/libaccess/lasdns.cpp
index 0b3d3dcf..de7d2a94 100644
--- a/lib/libaccess/lasdns.cpp
+++ b/lib/libaccess/lasdns.cpp
@@ -140,7 +140,7 @@ LASDnsBuild(NSErr_t *errp, char *attr_pattern, LASDnsContext_t *context, int ali
size_t delimiter; /* length of valid token */
char token[256]; /* max length dns name */
int i;
- int ipcnt;
+ int ipcnt = 0;
char **p;
unsigned long *ipaddrs=0;
pool_handle_t *pool;
@@ -347,7 +347,7 @@ int LASDnsEval(NSErr_t *errp, char *attr_name, CmpOp_t comparator,
int result;
int aliasflg;
char *my_dns;
- LASDnsContext_t *context;
+ LASDnsContext_t *context = NULL;
int rv;
*cachable = ACL_INDEF_CACHABLE;
diff --git a/lib/libaccess/lasip.cpp b/lib/libaccess/lasip.cpp
index aa698de6..01c76aa6 100644
--- a/lib/libaccess/lasip.cpp
+++ b/lib/libaccess/lasip.cpp
@@ -340,7 +340,7 @@ LASIpAddPattern(NSErr_t *errp, int netmask, int pattern, LASIpTree_t **treetop)
int stopbit; /* Don't care after this point */
int curbit; /* current bit we're working on */
int curval; /* value of pattern[curbit] */
- LASIpTree_t *curptr; /* pointer to the current node */
+ LASIpTree_t *curptr = NULL; /* pointer to the current node */
LASIpTree_t *newptr;
/* stop at the first 1 in the netmask from low to high */
@@ -448,7 +448,7 @@ int LASIpEval(NSErr_t *errp, char *attr_name, CmpOp_t comparator,
IPAddr_t ip;
int retcode;
LASIpTree_t *node;
- LASIpContext_t *context;
+ LASIpContext_t *context = NULL;
int rv;
char ip_str[124];
diff --git a/lib/libaccess/ldapacl.cpp b/lib/libaccess/ldapacl.cpp
index 6be89b18..4b7fdc8b 100644
--- a/lib/libaccess/ldapacl.cpp
+++ b/lib/libaccess/ldapacl.cpp
@@ -762,7 +762,7 @@ NSAPI_PUBLIC int acl_user_exists (const char *user, const char *userdn,
PList_t resource = 0;
PList_t auth_info = 0;
PList_t global_auth = NULL;
- int rv;
+ int rv = 0;
/* Check if the userdn is available in the usr_cache */
if (acl_usr_cache_enabled() && userdn) {
diff --git a/lib/libaccess/oneeval.cpp b/lib/libaccess/oneeval.cpp
index a8f2b248..05de0e36 100644
--- a/lib/libaccess/oneeval.cpp
+++ b/lib/libaccess/oneeval.cpp
@@ -344,7 +344,7 @@ ACLEvalBuildContext(
ACLHandle_t *acl;
ACLExprHandle_t *ace;
int ace_cnt = -1;
- ACLAceEntry_t *acelast, *new_ace;
+ ACLAceEntry_t *acelast = NULL, *new_ace;
ACLAceNumEntry_t *entry, *temp_entry;
char **argp;
ACLListCache_t *cache;
@@ -635,7 +635,7 @@ ACL_INTEvalTestRights(
int i, j, right_num, delta;
ACLCachable_t ace_cachable;
int result;
- int absolute;
+ int absolute = 0;
int skipflag;
int g_num; /* index into the generic rights array. */
char **g_rights;