From b0ae8743ce09be387e19d76c986a1296c003a4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 24 Feb 2015 12:14:37 +0100 Subject: sparse: fix Using plain integer as NULL pointer warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Le Goater Signed-off-by: Stewart Smith --- libpore/pore_inline_assembler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpore') diff --git a/libpore/pore_inline_assembler.c b/libpore/pore_inline_assembler.c index 470b2fa..44a93db 100644 --- a/libpore/pore_inline_assembler.c +++ b/libpore/pore_inline_assembler.c @@ -747,7 +747,7 @@ pore_inline_context_create(PoreInlineContext *ctx, PORE_INLINE_8_BYTE_DATA | PORE_INLINE_DISASSEMBLE_UNKNOWN; - if ((ctx == 0) || ((memory == 0) && (size != 0)) || + if ((ctx == NULL) || ((memory == NULL) && (size != 0)) || ((options & ~valid_options) != 0)) { rc = PORE_INLINE_INVALID_PARAMETER; } else { @@ -759,7 +759,7 @@ pore_inline_context_create(PoreInlineContext *ctx, pore_inline_context_reset(ctx); } - if (ctx != 0) { + if (ctx != NULL) { ctx->error = rc; if (rc) { ctx->size = 0; /* Effectively prevents using the ctx */ -- cgit v1.1