summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/cmd_spoolss.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 3bcf1bdcc9..92d8096505 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2265,9 +2265,7 @@ static WERROR cmd_spoolss_enum_data( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}
@@ -2340,9 +2338,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}
@@ -2417,9 +2413,7 @@ static WERROR cmd_spoolss_enum_printerkey( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}