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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Jun 2009 14:07:19 +0000 (16:07 +0200)
Guenther

source3/passdb/passdb.c

index 3ab0a1d995adcfe958a73a199c422ddf5c37cb77..aad16daf95e987d1eabf518bea8453e87e28404e 100644 (file)
@@ -648,7 +648,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;