Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix \dkr for #191 #192

Merged
merged 4 commits into from
Sep 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/io_frida.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,15 @@ static char *__system(RIO *io, RIODesc *fd, const char *command) {
json_builder_set_member_name (builder, "suspended");
json_builder_add_boolean_value (builder, rf->suspended);
JsonObject *result = perform_request (rf, builder, NULL, NULL);
if (!result) {
if (result) {
json_object_unref (result);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Else goes in the same line of the }

else if (!strncmp (command, "dkr", 3)) {
//pass
} else {
return NULL;
}
json_object_unref (result);

}

if (!strcmp (command, "")) {
Expand Down