From ebc54d8ccdaa50657cd65ed4d583ccbd1a4f7355 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Mon, 27 Jun 2022 02:40:35 -0700 Subject: [PATCH] zygisk: Fix unnecessary string copy --- zygisk/module/jni/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zygisk/module/jni/module.cpp b/zygisk/module/jni/module.cpp index 582be0b..a483114 100644 --- a/zygisk/module/jni/module.cpp +++ b/zygisk/module/jni/module.cpp @@ -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.