s4-smbtorture: make add-printerdriver test more robust against empty configfiles.
authorGünther Deschner <gd@samba.org>
Mon, 29 Nov 2010 16:48:42 +0000 (17:48 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 29 Nov 2010 16:48:42 +0000 (17:48 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 985ff33e09bba31cf5ee819b2f48483bbe44949e..1c9482b6f58006570ff6105d3a1a9457a9cd6dff 100644 (file)
@@ -8857,7 +8857,9 @@ static bool test_add_driver_arg(struct torture_context *tctx,
 
        info8.driver_path       = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.driver_path);
        info8.data_file         = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.data_file);
-       info8.config_file       = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.config_file);
+       if (d->info8.config_file) {
+               info8.config_file       = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.config_file);
+       }
 
        for (i=0; i < ARRAY_SIZE(levels); i++) {