1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r16393: Klocwork #1164. Null deref.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-06-20 01:27:39 +00:00 committed by Gerald (Jerry) Carter
parent cab256d72a
commit c9a4ce51ed

View File

@ -193,7 +193,7 @@ static int generic_queue_get(const char *printer_name,
/* turn the lpq output into a series of job structures */
qcount = 0;
ZERO_STRUCTP(status);
if (numlines) {
if (numlines && qlines) {
queue = SMB_MALLOC_ARRAY(print_queue_struct, numlines+1);
if (!queue) {
file_lines_free(qlines);