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 | a77a699fe9d7f6d650c520162e139988e4380702 (patch) | |
tree | d393c8e221059b2b9931551145d88d6b74ca0d6b /source3 | |
parent | 1c8a871aaf11745b8de4c0601e514eebdfb09436 (diff) | |
download | samba-a77a699fe9d7f6d650c520162e139988e4380702.tar.gz samba-a77a699fe9d7f6d650c520162e139988e4380702.tar.bz2 samba-a77a699fe9d7f6d650c520162e139988e4380702.zip |
r16393: Klocwork #1164. Null deref.
Jeremy.
(This used to be commit c9a4ce51ed85686a35f350f4681b95d68adebbd6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/print_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/print_generic.c b/source3/printing/print_generic.c index e445bc3ce0..1ea762695b 100644 --- a/source3/printing/print_generic.c +++ b/source3/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); |