Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 34a29b39ca959cd52bff3025b8e400a0c85e4d6e..2f92f54d37414fc9cba3de863db36987f619f0f7 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -1040,7 +1040,7 @@ static void TickLines(bool optimize) { |
i::SNPrintF(optimize_call, "%%OptimizeFunctionOnNextCall(%s);\n", |
func_name); |
} else { |
- i::SNPrintF(optimize_call, ""); |
+ optimize_call[0] = '\0'; |
} |
i::SNPrintF(script, |
"function %s() {\n" |