s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().
authorGünther Deschner <gd@samba.org>
Thu, 12 May 2011 15:03:20 +0000 (17:03 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 12 May 2011 16:09:16 +0000 (18:09 +0200)
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104

source3/lib/smbconf/smbconf_reg.c

index 6982795c73d1a509c8c67af6cb70ea6151fc551c..599ebb7b46e84004894686f34b50dd62e30766e9 100644 (file)
@@ -600,7 +600,7 @@ static sbcErr smbconf_reg_init(struct smbconf_ctx *ctx, const char *path)
        }
        ctx->path = talloc_strdup(ctx, path);
        if (ctx->path == NULL) {
-               werr = WERR_NOMEM;
+               err = SBC_ERR_NOMEM;
                goto done;
        }