From 53aef526b4ead783da87a508ab7bdc5ddea514b2 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Sat, 18 Apr 2015 23:15:17 +0300 Subject: [PATCH] Fix Coverity defects Fix CID 1291594 Fix CID 1291593 --- libr/core/cmd_cmp.c | 2 +- libr/core/cmd_write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libr/core/cmd_cmp.c b/libr/core/cmd_cmp.c index 0b9914c931..a3e3ecb75d 100644 --- a/libr/core/cmd_cmp.c +++ b/libr/core/cmd_cmp.c @@ -430,7 +430,7 @@ static int cmd_cmp(void *data, const char *input) { cmd_cmp_disasm (core, input+2, 'c'); } else { ut32 oflags = core->print->flags; - ut64 addr; + ut64 addr = 0; // TOTHINK: Not sure what default address should be if (input[1]=='c') { // "ccc" core->print->flags |= R_PRINT_FLAGS_DIFFOUT; addr = r_num_math (core->num, input+3); diff --git a/libr/core/cmd_write.c b/libr/core/cmd_write.c index 3472140730..d5404b7685 100644 --- a/libr/core/cmd_write.c +++ b/libr/core/cmd_write.c @@ -178,7 +178,7 @@ static int cmd_write(void *data, const char *input) { char _fn[32]; ut64 off; ut8 *buf; - st64 num; + st64 num = 0; const char* help_msg[] = { "Usage:","w[x] [str] [