diff options
-rw-r--r-- | source3/printing/nt_printing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 7b19b74025..a12f906526 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2431,7 +2431,8 @@ uint32 get_printer_subkeys( NT_PRINTER_DATA *data, char* key, fstring **subkeys /* tag of the end */ - fstrcpy( subkeys_ptr[num_subkeys], "" ); + if (num_subkeys) + fstrcpy( subkeys_ptr[num_subkeys], "" ); *subkeys = subkeys_ptr; |