aboutsummaryrefslogtreecommitdiff
path: root/nscd/selinux.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
committerUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
commit9d9febc7952c43f90fd81ce185e4b1a74cb13375 (patch)
treee53f5184345c494c12c38f59bdd088cbb61160fe /nscd/selinux.c
parent701666b77d9bc02a8dce61adcf02d2b929a2f95a (diff)
downloadglibc-9d9febc7952c43f90fd81ce185e4b1a74cb13375.zip
glibc-9d9febc7952c43f90fd81ce185e4b1a74cb13375.tar.gz
glibc-9d9febc7952c43f90fd81ce185e4b1a74cb13375.tar.bz2
* nscd/selinux.c (preserve_capabilities): Initialize new_caps
to avoid warning. * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid warning. * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid warning. * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len to avoid warnings.
Diffstat (limited to 'nscd/selinux.c')
-rw-r--r--nscd/selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/selinux.c b/nscd/selinux.c
index f2dbcee..6cbcbea 100644
--- a/nscd/selinux.c
+++ b/nscd/selinux.c
@@ -180,7 +180,7 @@ preserve_capabilities (void)
}
cap_t tmp_caps = cap_init ();
- cap_t new_caps;
+ cap_t new_caps = NULL;
if (tmp_caps != NULL)
new_caps = cap_init ();