summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-07 07:14:14 +0000
committerJeremy Allison <jra@samba.org>2002-11-07 07:14:14 +0000
commitd1e10b797199312614117b7ca67ca15838fb4f43 (patch)
tree6ef0d761c065016e8008179aaa9431aadb82d3e5
parentfaae0a81c35133aaa0eb502ebadfe29bbae047b0 (diff)
downloadsamba-d1e10b797199312614117b7ca67ca15838fb4f43.tar.gz
samba-d1e10b797199312614117b7ca67ca15838fb4f43.tar.bz2
samba-d1e10b797199312614117b7ca67ca15838fb4f43.zip
Keeping branches in sync....
Jeremy. (This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)
-rw-r--r--source3/printing/nt_printing.c3
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;