mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
printing: Simplify pack_devicemode()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4388ad2a90
commit
93a28a5f24
@ -168,7 +168,7 @@ static TDB_DATA print_key(uint32_t jobid, uint32_t *tmp)
|
||||
static int pack_devicemode(struct spoolss_DeviceMode *devmode, uint8_t *buf, int buflen)
|
||||
{
|
||||
enum ndr_err_code ndr_err;
|
||||
DATA_BLOB blob;
|
||||
DATA_BLOB blob = { .data = NULL };
|
||||
int len = 0;
|
||||
|
||||
if (devmode) {
|
||||
@ -181,8 +181,6 @@ static int pack_devicemode(struct spoolss_DeviceMode *devmode, uint8_t *buf, int
|
||||
"error encoding spoolss_DeviceMode\n"));
|
||||
goto done;
|
||||
}
|
||||
} else {
|
||||
ZERO_STRUCT(blob);
|
||||
}
|
||||
|
||||
len = tdb_pack(buf, buflen, "B", blob.length, blob.data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user