Skip to content

Commit

Permalink
Warn fixes (radareorg#12360)
Browse files Browse the repository at this point in the history
* Remove unused variable from __io_attach
* Avoid using empty string with snprintf, just set \0
  • Loading branch information
ret2libc authored and radare committed Nov 30, 2018
1 parent acbbfd8 commit baf9305
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion libr/asm/arch/msp430/msp430_disas.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ int msp430_decode_command(const ut8 *in, int len, struct msp430_cmd *cmd) {
if (ret < 0) {
cmd->type = MSP430_INV;
snprintf(cmd->instr, sizeof (cmd->instr), "invalid");
snprintf(cmd->operands, sizeof (cmd->operands), "");
cmd->operands[0] = '\0';
ret = 2;
}

Expand Down
2 changes: 0 additions & 2 deletions libr/debug/p/debug_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ static int __io_wait(RDebug *dbg, int pid) {
}

static int __io_attach(RDebug *dbg, int pid) {
static int curPid = -1;
curPid = pid;
return true;
}

Expand Down

0 comments on commit baf9305

Please sign in to comment.