summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {