diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-16 20:09:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-16 20:09:51 +0000 |
commit | 452baba8cb2f644b1f57161a2bfebf570efc596c (patch) | |
tree | 09e62fbcf6216fd04cd5d78320f999c57d8e647d /source3/printing | |
parent | 378fd95ce872912bd2e21c87dd7369f5056203b8 (diff) | |
download | samba-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.c | 4 |
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) { |