rizinorg / rz-pipe

Access rizin via pipe from any programming language!
33 stars 11 forks source link

Handle empty output from json commands #32

Closed ret2libc closed 2 years ago

ret2libc commented 2 years ago

Fixes https://github.com/rizinorg/rz-pipe/issues/31#issuecomment-945562491

When the command return nothing e.g. '\n' the json loader complains about it. Let's just return None in those cases. That means that rizin was not able to give back any information, which is different from [], that means that the information are there but there are none.

wargio commented 2 years ago

please update the version so we can upload a new version :)