rasm2: treat reading from stdin the same as reading from a file (#15903)
Add the missing return flag inversion so reading from stdin and a regular file both return zero on success.
This commit is contained in:
parent
03d4488588
commit
4673490e33
|
@ -765,6 +765,7 @@ R_API int r_main_rasm2(int argc, char *argv[]) {
|
|||
ret = print_assembly_output (as, (char *)buf, offset, len,
|
||||
as->a->bits, bin, use_spp, rad, hexwords, arch);
|
||||
}
|
||||
ret = !ret;
|
||||
free (buf);
|
||||
} else {
|
||||
content = r_file_slurp (file, &length);
|
||||
|
|
Loading…
Reference in New Issue