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 | 667e6d8279844e8a27b315fa900d1bbfbe874926 (patch) | |
tree | a230fb08824a1d52aba1fc107673fc906ccf41da /source3/printing/print_generic.c | |
parent | 90290b166b70dc2606d076f3266b6a9353a49c61 (diff) | |
download | samba-667e6d8279844e8a27b315fa900d1bbfbe874926.tar.gz samba-667e6d8279844e8a27b315fa900d1bbfbe874926.tar.bz2 samba-667e6d8279844e8a27b315fa900d1bbfbe874926.zip |
Ensure print queue array is zeroed out before returning.
Jeremy.
(This used to be commit 337cac7810369430045d7a136176bd57e55adcde)
Diffstat (limited to 'source3/printing/print_generic.c')
-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], |