From e2e3c377a3fd160e55dc73a1849622dff375462f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 Mar 2006 17:26:56 +0000 Subject: r14243: Fix Coverity bug # 143 (This used to be commit 5a0087e636104ffa98f23b8d17b4d002a55bc6b7) --- source3/rpc_client/cli_spoolss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index 51b7c5a56b..344d4fb4ba 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -361,7 +361,7 @@ static BOOL decode_jobs_2(TALLOC_CTX *mem_ctx, RPC_BUFFER *buffer, uint32 i; *jobs = TALLOC_ARRAY(mem_ctx, JOB_INFO_2, num_jobs); - if (!jobs) { + if (*jobs == NULL) { return False; } prs_set_offset(&buffer->prs,0); -- cgit