summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-10 06:12:46 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-10 06:12:46 +0000
commite1d6e7d277fe3f30ee770da96f7fcb17723d9838 (patch)
tree0c4c1687f6702b54f1b6d0038d530f21db0716f6 /sal
parentb6d017a81137efbb6a48d23f89fc738a3faee4ca (diff)
#i10000# Avoid 'may be used uninitialized' warning.
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/security.c b/sal/osl/unx/security.c
index c7c42ff6d0d4..53dd452e220b 100644
--- a/sal/osl/unx/security.c
+++ b/sal/osl/unx/security.c
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: security.c,v $
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
* This file is part of OpenOffice.org.
*
@@ -121,7 +121,7 @@ static void deleteSecurityImpl(oslSecurityImpl * impl) {
oslSecurity SAL_CALL osl_getCurrentSecurity()
{
- size_t n;
+ size_t n = 0;
oslSecurityImpl * p = NULL;
for (;;) {
struct passwd * found;
@@ -518,7 +518,7 @@ osl_psz_loginUser(const sal_Char* pszUserName, const sal_Char* pszPasswd,
/* get nis or normal password, should succeed for any known user, but
perhaps the password is wrong (i.e. 'x') if shadow passwords are in
use or authentication must be done by PAM */
- size_t n;
+ size_t n = 0;
int err = 0;
struct passwd * found = NULL;
for (;;) {