aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2020-03-23 17:34:37 +0100
committerAndreas Schneider <asn@samba.org>2020-03-24 08:38:02 +0100
commit26be2b9b8d99ca5aaa05b082765785179a9ba494 (patch)
tree0a39c8847a270140f8091f025b9ee5bfaa8976fd
parentffca0103fceb9d283eb36f175cb76597183de255 (diff)
downloadpam_wrapper-26be2b9b8d99ca5aaa05b082765785179a9ba494.tar.gz
pam_wrapper-26be2b9b8d99ca5aaa05b082765785179a9ba494.tar.xz
pam_wrapper-26be2b9b8d99ca5aaa05b082765785179a9ba494.zip
pwrap: Initialize pointers with NULL in p_rmdirs_at()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/pam_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c
index a02523b..b7e3611 100644
--- a/src/pam_wrapper.c
+++ b/src/pam_wrapper.c
@@ -1821,8 +1821,8 @@ void pwrap_constructor(void)
static int p_rmdirs_at(const char *path, int parent_fd)
{
- DIR *d;
- struct dirent *dp;
+ DIR *d = NULL;
+ struct dirent *dp = NULL;
struct stat sb;
int path_fd;
int rc;