summaryrefslogtreecommitdiffstats
path: root/src/core/user_script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/user_script.cpp')
-rw-r--r--src/core/user_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/user_script.cpp b/src/core/user_script.cpp
index 7ccb6e10a..912b204b7 100644
--- a/src/core/user_script.cpp
+++ b/src/core/user_script.cpp
@@ -228,7 +228,7 @@ void UserScript::parseMetadataHeader()
if (line_end == std::string::npos)
line_end = script_text.length() - 1;
- line.set(script_text.data() + line_start, line_end - line_start);
+ line = base::StringPiece(script_text.data() + line_start, line_end - line_start);
if (!in_metadata) {
if (line.starts_with(kUserScriptBegin))