Skip to content

Commit b8caf6e

Browse files
committed
Make 's' const reference to avoid the copy
1 parent 8dd2681 commit b8caf6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fuzzer/afl_fuzzer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int main(int argc, char** argv) {
143143
read_bytes = read(STDIN_FILENO, buf, 128);
144144

145145
std::string currentString = std::string(read_bytes, 128);
146-
std::string s = currentString;
146+
const std::string& s = currentString;
147147
#if 0
148148
std::string z = lastString;
149149
#endif

0 commit comments

Comments
 (0)