diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-20 01:27:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:51 -0500 |
commit | c9a4ce51ed85686a35f350f4681b95d68adebbd6 (patch) | |
tree | 27f7e58ba90b64ca2f3defc85ee50e5818c3cffa /source/printing | |
parent | cab256d72a91f59432e28e9623c10384d9ca2b5e (diff) | |
download | samba-c9a4ce51ed85686a35f350f4681b95d68adebbd6.tar.gz samba-c9a4ce51ed85686a35f350f4681b95d68adebbd6.tar.xz samba-c9a4ce51ed85686a35f350f4681b95d68adebbd6.zip |
r16393: Klocwork #1164. Null deref.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/print_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/print_generic.c b/source/printing/print_generic.c index e445bc3ce00..1ea762695b1 100644 --- a/source/printing/print_generic.c +++ b/source/printing/print_generic.c @@ -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); |