Skip to content

Commit

Permalink
device: Fix property getters for id and name
Browse files Browse the repository at this point in the history
When Device is created with a custom value for either.

Due to typos the getters ended up recursing until stack overflow.
  • Loading branch information
oleavr committed Jul 5, 2024
1 parent 684739a commit 5625a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frida.vala
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,15 @@ namespace Frida {
public string id {
get {
if (_id != null)
return id;
return _id;
return provider.id;
}
}

public string name {
get {
if (_name != null)
return name;
return _name;
return provider.name;
}
}
Expand Down

0 comments on commit 5625a08

Please sign in to comment.