diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-09 00:00:08 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-09 00:00:08 +0000 |
commit | 4b5548d8dc3fd242beca138a3047cc12303628af (patch) | |
tree | 494ffefa3b431df99f2eedfa5356d186d2412789 /source3 | |
parent | b3e9dfc37585b9544f95c0a6cdac2d2149cd476a (diff) | |
download | samba-4b5548d8dc3fd242beca138a3047cc12303628af.tar.gz samba-4b5548d8dc3fd242beca138a3047cc12303628af.tar.bz2 samba-4b5548d8dc3fd242beca138a3047cc12303628af.zip |
Ensure print queue array is zeroed out before returning.
Jeremy.
(This used to be commit f0fac6a1e3574d2d0419968b8e806b5de91f5a81)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/print_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/print_generic.c b/source3/printing/print_generic.c index 4d77b827bf..0b062ebdd9 100644 --- a/source3/printing/print_generic.c +++ b/source3/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], |