s4-smbtorture: make sure to zero the add driver info 8 struct before adding drivers.
authorGünther Deschner <gd@samba.org>
Tue, 27 Apr 2010 15:52:47 +0000 (17:52 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 27 Apr 2010 15:56:50 +0000 (17:56 +0200)
Guenther

source4/torture/rpc/spoolss.c

index a0adff36961ce0b1669581def36a9abacee6a65a..7d0038e3872a4419796b747571b3aca26144e21d 100644 (file)
@@ -7547,6 +7547,8 @@ static bool test_add_driver_arg(struct torture_context *tctx,
        uint32_t add_flags = APD_COPY_NEW_FILES;
        uint32_t delete_flags = 0;
 
+       ZERO_STRUCT(info8);
+
        torture_comment(tctx, "Testing PrinterDriver%s '%s' for environment '%s'\n",
                d->ex ? "Ex" : "", d->info8.driver_name, d->local.environment);