1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:smbd: Initialize command for spools printer control

./../source3/smbd/lanman.c: In function ‘api_WPrintQueueCtrl’:
../../source3/smbd/lanman.c:3342:9: error: ‘command’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Andreas Schneider 2021-05-19 18:32:27 +02:00 committed by Andreas Schneider
parent 09fed102c5
commit 73e68c38e7

View File

@ -3260,7 +3260,7 @@ static bool api_WPrintQueueCtrl(struct smbd_server_connection *sconn,
struct spoolss_SetPrinterInfoCtr info_ctr;
struct spoolss_DevmodeContainer devmode_ctr;
struct sec_desc_buf secdesc_ctr;
enum spoolss_PrinterControl command;
enum spoolss_PrinterControl command = SPOOLSS_PRINTER_CONTROL_UNPAUSE;
if (!str1 || !str2 || !QueueName) {
return False;