Fix Coverity defects

Fix CID 1291594
Fix CID 1291593
This commit is contained in:
Anton Kochkov 2015-04-18 23:15:17 +03:00
parent 9f8769b0f8
commit 53aef526b4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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] [<file] [<<EOF] [@addr]","",
"w","[1248][+-][n]","increment/decrement byte,word..",