From cff03629ac30826a9363332f1ac168c2ec821122 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 18 Jun 2014 14:04:42 +0800 Subject: [PATCH] arm64: assign NULL to char pointer, not zero. bug reported by Coverity --- arch/AArch64/AArch64InstPrinter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/AArch64/AArch64InstPrinter.c b/arch/AArch64/AArch64InstPrinter.c index 282ac58c..5e921be1 100644 --- a/arch/AArch64/AArch64InstPrinter.c +++ b/arch/AArch64/AArch64InstPrinter.c @@ -92,7 +92,7 @@ static void printAddrRegExtendOperand(MCInst *MI, unsigned OpNum, unsigned S = ExtImm & 1; bool IsLSL = OptionHi == 1 && RmSize == 64; - char *Ext = 0; + char *Ext = NULL; switch (OptionHi) { case 1: if (RmSize == 32) {