removed unnecessary memset
authorGerald Carter <jerry@samba.org>
Thu, 11 Apr 2002 03:15:02 +0000 (03:15 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 11 Apr 2002 03:15:02 +0000 (03:15 +0000)
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)

source3/printing/nt_printing.c

index 26320c24facff6e32964f79932c888bbe139e1dd..907c3fd8e6987f9d5bb20ded7d91fe8c1e50c14d 100644 (file)
@@ -44,6 +44,7 @@ static TDB_CONTEXT *tdb_printers; /* used for printers files */
 
 GENERIC_MAPPING printer_generic_mapping = {
        PRINTER_READ,
+       PRINTER_WRITE,
        PRINTER_EXECUTE,
        PRINTER_ALL_ACCESS
 };
@@ -3099,8 +3100,6 @@ static WERROR save_driver_init_2(NT_PRINTER_INFO_LEVEL *printer, NT_PRINTER_PARA
                        goto done;
                }
        
-               memset(nt_devmode, 0x0, sizeof(NT_DEVICEMODE));
-       
                ZERO_STRUCTP(nt_devmode);
 
                /*