diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-09 00:00:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-09 00:00:50 +0000 |
commit | 337cac7810369430045d7a136176bd57e55adcde (patch) | |
tree | a09444fbe70a8669a18dde37d9bb98606c945970 /source/printing | |
parent | f4be4e70a12edae83b9b89622ca5077a7d3d5602 (diff) | |
download | samba-337cac7810369430045d7a136176bd57e55adcde.tar.gz samba-337cac7810369430045d7a136176bd57e55adcde.tar.xz samba-337cac7810369430045d7a136176bd57e55adcde.zip |
Ensure print queue array is zeroed out before returning.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/print_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/printing/print_generic.c b/source/printing/print_generic.c index 4d77b827bf6..0b062ebdd98 100644 --- a/source/printing/print_generic.c +++ b/source/printing/print_generic.c @@ -214,6 +214,7 @@ static int generic_queue_get(int snum, print_queue_struct **q, print_status_stru queue = (print_queue_struct *)malloc(sizeof(print_queue_struct)*(numlines+1)); if (queue) { + memset(queue, '\0', sizeof(print_queue_struct)*(numlines+1)); for (i=0; i<numlines; i++) { /* parse the line */ if (parse_lpq_entry(snum,qlines[i], |