summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-16 20:09:51 +0000
committerJeremy Allison <jra@samba.org>2002-10-16 20:09:51 +0000
commit452baba8cb2f644b1f57161a2bfebf570efc596c (patch)
tree09e62fbcf6216fd04cd5d78320f999c57d8e647d /source3/printing
parent378fd95ce872912bd2e21c87dd7369f5056203b8 (diff)
downloadsamba-452baba8cb2f644b1f57161a2bfebf570efc596c.tar.gz
samba-452baba8cb2f644b1f57161a2bfebf570efc596c.tar.bz2
samba-452baba8cb2f644b1f57161a2bfebf570efc596c.zip
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
Jeremy. (This used to be commit 20986489f4736820a4981c6aa0eecccf169f0170)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c4
1 files changed, 3 insertions, 1 deletions
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) {