summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 16:33:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:01 -0500
commitbd8e1b442d8493beecd8042d23e0875bd0679207 (patch)
treef9fd89d4287c962ca608bf1990574bdb84b6c80f
parent9bc20e14db7795d24718a443aa3f0a11cf3fc2ad (diff)
downloadsamba-bd8e1b442d8493beecd8042d23e0875bd0679207.tar.gz
samba-bd8e1b442d8493beecd8042d23e0875bd0679207.tar.bz2
samba-bd8e1b442d8493beecd8042d23e0875bd0679207.zip
r13958: Fix Coverity Bug # 141
(This used to be commit 598513d1d3e23cc71ea0fd53230d393b6724b534)
-rw-r--r--source3/rpc_client/cli_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 749885dbb4..51b7c5a56b 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -384,7 +384,7 @@ static BOOL decode_forms_1(TALLOC_CTX *mem_ctx, RPC_BUFFER *buffer,
int i;
*forms = TALLOC_ARRAY(mem_ctx, FORM_1, num_forms);
- if (!forms) {
+ if (*forms == NULL) {
return False;
}
prs_set_offset(&buffer->prs,0);