summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-07 07:13:29 +0000
committerJeremy Allison <jra@samba.org>2002-11-07 07:13:29 +0000
commit8980fcf1eadf2df8c42b2625b1c34aa2904adf8e (patch)
tree19780a49fd1513898fcadfe47fad6814479cca0f
parent9108f68df330bf2dfa9e6591ab65e98408906d1a (diff)
downloadsamba-8980fcf1eadf2df8c42b2625b1c34aa2904adf8e.tar.gz
samba-8980fcf1eadf2df8c42b2625b1c34aa2904adf8e.tar.bz2
samba-8980fcf1eadf2df8c42b2625b1c34aa2904adf8e.zip
Keeping branches in sync....
Jeremy. (This used to be commit eb937761c4047bd98990ca33e56b668465e2c228)
-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;