From d1e10b797199312614117b7ca67ca15838fb4f43 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 7 Nov 2002 07:14:14 +0000 Subject: Keeping branches in sync.... Jeremy. (This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88) --- source3/printing/nt_printing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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; -- cgit