diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-16 20:09:22 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-16 20:09:22 +0000 |
commit | 33b9cc3f67bb94f51566a29bfca5abd76cd516b3 (patch) | |
tree | 8a67f89e248387b5c0de1773b4106b76a97600fb /source3 | |
parent | a0fbdc3d64efb5ea14baa558bb360168edfef3ca (diff) | |
download | samba-33b9cc3f67bb94f51566a29bfca5abd76cd516b3.tar.gz samba-33b9cc3f67bb94f51566a29bfca5abd76cd516b3.tar.bz2 samba-33b9cc3f67bb94f51566a29bfca5abd76cd516b3.zip |
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
Jeremy.
(This used to be commit 0d989a911d742ed5eeb874f5b8350b0931f3d9db)
Diffstat (limited to 'source3')
-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) { |