summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-22 02:51:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:58 -0500
commit18dc1009e61873017237eee0ff2e032f913d7357 (patch)
tree47f556ab86eb887dce16bb2c96bdea31e8075878
parentc3878e6bf6c9af38ca92aea3c4ac2f0d554ca677 (diff)
downloadsamba-18dc1009e61873017237eee0ff2e032f913d7357.tar.gz
samba-18dc1009e61873017237eee0ff2e032f913d7357.tar.bz2
samba-18dc1009e61873017237eee0ff2e032f913d7357.zip
r7829: fix unitialized printer status field that was breaking migration of print queues
(This used to be commit ada1d326aeef4a2f33a360a8ea4a874e59fcfee6)
-rw-r--r--source3/printing/printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index ab86db53f3..0737cf00d1 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2094,6 +2094,8 @@ int print_queue_length(int snum, print_status_struct *pstatus)
const char* sharename = lp_const_servicename( snum );
print_status_struct status;
int len;
+
+ ZERO_STRUCT( status );
/* make sure the database is up to date */
if (print_cache_expired(lp_const_servicename(snum), True))