s4:torture: avoid use of uninitialized variable in error case.
authorMichael Adam <obnox@samba.org>
Mon, 23 Mar 2015 00:55:02 +0000 (01:55 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 23 Mar 2015 17:40:18 +0000 (18:40 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Mar 23 18:40:18 CET 2015 on sn-devel-104

source4/torture/unix/whoami.c

index 71c25dda28704a51e7f62acb251fc0aa616cb39f..00109eb35a27457a524c2bc28a4a08bc6c001989 100644 (file)
@@ -346,7 +346,7 @@ bool torture_unix_whoami(struct torture_context *torture)
 {
        struct smbcli_state *cli;
        struct smb_whoami whoami;
-       bool ret;
+       bool ret = false;
        struct ldb_context *ldb;
        const char *addc, *host;