From 452baba8cb2f644b1f57161a2bfebf570efc596c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 16 Oct 2002 20:09:51 +0000 Subject: Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-). Jeremy. (This used to be commit 20986489f4736820a4981c6aa0eecccf169f0170) --- source3/printing/printing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/printing') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 7a527eebbf..95d8915976 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -183,7 +183,9 @@ static struct tdb_print_db *get_print_db_byname(const char *printername) return NULL; } } - ZERO_STRUCTP(p); + p->tdb = NULL; + p->ref_count = 0; + memset(p->printer_name, '\0', sizeof(p->printer_name)); break; } if (p) { -- cgit