s3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf changes.
authorGünther Deschner <gd@samba.org>
Thu, 12 May 2011 22:15:41 +0000 (00:15 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 12 May 2011 22:18:49 +0000 (00:18 +0200)
Guenther

source3/lib/netapi/serverinfo.c
source3/libnet/libnet_join.c

index f321648f249c9de0ad6bd2bb505bb35eb099ccc3..8f76b4a63e9b9707a01c001d8180ba1c0ce895f9 100644 (file)
@@ -540,7 +540,7 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
 static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx,
                                      struct NetServerSetInfo *r)
 {
-       WERROR werr;
+       WERROR werr = WERR_OK;
        sbcErr err;
        struct smbconf_ctx *conf_ctx;
        struct srvsvc_NetSrvInfo1005 *info1005;
index 2b06be5dc130693d18a39e48097f754a2b547e33..747e1aaadd8ea41ea80b5f668bc873f996dd9dc3 100644 (file)
@@ -1455,7 +1455,7 @@ done:
 
 static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
 {
-       WERROR werr;
+       WERROR werr = WERR_OK;
        sbcErr err;
        struct smbconf_ctx *ctx;