diff options
author | Günther Deschner <gd@samba.org> | 2009-03-25 23:23:06 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-26 10:42:13 +0100 |
commit | fe340eb92fd2e5dfef977dc391d2a43ce970e0ea (patch) | |
tree | f56dbb238e960ab14c264c2a76941b2cec3299b3 /source3/utils | |
parent | 24d5229a81e1067662930d42f8c59b3a0adac1e0 (diff) | |
download | samba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.tar.gz samba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.tar.bz2 samba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.zip |
s3:rpc_parse: remove unused init_unistr().
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 1d0e9a38be..9721628f02 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -2260,14 +2260,13 @@ NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c, info_dst.info2.secdesc = NULL; #if 0 - if (asprintf(&devicename, "\\\\%s\\%s", longname, - printername) < 0) { + info_dst.info2.devmode.devicename = + talloc_asprintf(mem_ctx, "\\\\%s\\%s", + longname, printername); + if (!info_dst.info2.devmode.devicename) { nt_status = NT_STATUS_NO_MEMORY; goto done; } - - init_unistr(&ctr_dst.printers_2->devmode->devicename, - devicename); #endif if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, level, &info_dst)) |