summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-12 17:03:20 +0200
committerGünther Deschner <gd@samba.org>2011-05-12 18:09:16 +0200
commit7da530e1e42ab15152bc39d4edd4e9a10f091a22 (patch)
tree826326a177f163f0851dea9ca6b6e41e094b5b33 /source3/lib/smbconf
parentc1ac023b588e1ca676cbbf542ca6f93aa199ad32 (diff)
downloadsamba-7da530e1e42ab15152bc39d4edd4e9a10f091a22.tar.gz
samba-7da530e1e42ab15152bc39d4edd4e9a10f091a22.tar.bz2
samba-7da530e1e42ab15152bc39d4edd4e9a10f091a22.zip
s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r--source3/lib/smbconf/smbconf_reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index 6982795c73..599ebb7b46 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -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;
}