s3-libnet: Fix compiler errors when building with --address-sanitizer
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 03:42:41 +0000 (15:42 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:13 +0000 (04:40 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source3/libnet/libnet_dssync_passdb.c

index b80bece..31c0616 100644 (file)
@@ -1809,7 +1809,7 @@ static NTSTATUS parse_object(struct dssync_passdb *pctx,
        for (a=0; a < ARRAY_SIZE(dssync_object_table); a++) {
                if (sam_type == dssync_object_table[a].type) {
                        if (dssync_object_table[a].fn) {
-                               struct dssync_passdb_obj *obj;
+                               struct dssync_passdb_obj *obj = NULL;
                                status = dssync_create_obj(pctx, pctx->all,
                                                           sam_type, cur, &obj);
                                if (!NT_STATUS_IS_OK(status)) {