Skip to content

Commit

Permalink
Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile
Browse files Browse the repository at this point in the history
No need to remove via another temporary file.

(cherry picked from commit c74b625)
  • Loading branch information
jrosdahl committed Mar 10, 2020
1 parent c181fdd commit 67e0b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ use_relative_paths_in_depfile(const Context& ctx)
}
if (!result) {
cc_log("Removing temporary dependency file: %s", tmp_file);
x_unlink(tmp_file);
tmp_unlink(tmp_file);
}
free(tmp_file);
}
Expand Down

0 comments on commit 67e0b81

Please sign in to comment.