zygisk: Fix unnecessary string copy

This commit is contained in:
Danny Lin 2022-06-27 02:40:35 -07:00
parent 27a8138b7c
commit ebc54d8ccd
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC

View File

@ -83,7 +83,7 @@ private:
close(fd);
}
void preSpecialize(std::string process) {
void preSpecialize(const std::string& process) {
// Only take action for GMS, otherwise unload
if (process.rfind("com.google.android.gms", 0) != 0) {
// If this isn't GMS, bail out and unload.