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:
Todd 2020-01-27 00:44:51 -06:00 committed by radare
parent 03d4488588
commit 4673490e33
1 changed files with 1 additions and 0 deletions

View File

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