Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 70e7007

Browse files
committed
Directly pass the string instead of char * to Truncate util function. It will prevent useless conversions.
1 parent c406d1c commit 70e7007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deps_log.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ bool DepsLog::Load(const string& path, State* state, string* err) {
275275
}
276276
fclose(f);
277277

278-
if (!Truncate(path.c_str(), offset, err))
278+
if (!Truncate(path, offset, err))
279279
return false;
280280

281281
// The truncate succeeded; we'll just report the load error as a

0 commit comments

Comments
 (0)