s3-passdb: fix uninitialized variable in local_password_change().
authorGünther Deschner <gd@samba.org>
Fri, 29 May 2009 16:08:02 +0000 (18:08 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 May 2009 16:08:02 +0000 (18:08 +0200)
Guenther

source3/passdb/passdb.c

index 9654e79d7a5f47b0f141ab5e87fbcadc34ade829..51190e0bc2a26e7a1b54733bd243302cbcb8cdbb 100644 (file)
@@ -649,7 +649,7 @@ NTSTATUS local_password_change(const char *user_name,
        uint32_t rid;
        NTSTATUS result;
        bool user_exists;
-       int ret;
+       int ret = -1;
 
        *pp_err_str = NULL;
        *pp_msg_str = NULL;