s4-param: Make sure newname is not used uninitialized
authorAndreas Schneider <asn@samba.org>
Fri, 13 Nov 2015 12:40:25 +0000 (13:40 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 17 Nov 2015 15:48:23 +0000 (16:48 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source4/param/share_ldb.c

index 0257cd1b93727686c240709cc53167e4eeac0361..cf8c5bb3d4f3ed73d7e08b24471131930cb95b65 100644 (file)
@@ -445,7 +445,7 @@ static NTSTATUS sldb_set(struct share_context *ctx, const char *name, struct sha
        TALLOC_CTX *tmp_ctx;
        NTSTATUS ret;
        bool do_rename = false;
-       char *newname;
+       char *newname = NULL;
        int err, i;
 
        if (!name) {