mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 14:19:51 +00:00
Fix rasm2 -f return value
This commit is contained in:
parent
37bc6836e2
commit
a07530dff1
@ -366,8 +366,12 @@ int main(int argc, char *argv[]) {
|
||||
if (dis) ret = rasm_disasm (content, offset,
|
||||
length, a->bits, ascii, bin, dis-1);
|
||||
else ret = rasm_asm (content, offset, length, a->bits, bin);
|
||||
ret = !!! ret;
|
||||
free (content);
|
||||
} else eprintf ("rasm2: Cannot open file %s\n", file);
|
||||
} else {
|
||||
eprintf ("rasm2: Cannot open file %s\n", file);
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
} else if (argv[optind]) {
|
||||
if (!strcmp (argv[optind], "-")) {
|
||||
|
Loading…
Reference in New Issue
Block a user