summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-16 20:09:22 +0000
committerJeremy Allison <jra@samba.org>2002-10-16 20:09:22 +0000
commit33b9cc3f67bb94f51566a29bfca5abd76cd516b3 (patch)
tree8a67f89e248387b5c0de1773b4106b76a97600fb
parenta0fbdc3d64efb5ea14baa558bb360168edfef3ca (diff)
downloadsamba-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)
-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) {