]> git.ipfire.org Git - thirdparty/ccache.git/commit
Fix deletion of tmp_stderr in depend mode
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Mar 2019 21:04:22 +0000 (22:04 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Mar 2019 21:04:22 +0000 (22:04 +0100)
commit4fb599caebb9615b2a62d13c5358c40a86f27566
tree8ba510839c9ffccfb37381c59f0ded199aa5f329
parentb11d430e5eefa00c45eeb5e9d675d65b22807c1e
Fix deletion of tmp_stderr in depend mode

If the compiler produced stderr, a temporary file leaks if depend mode
is enabled. Also, if the compiler does not produce stderr and depend
mode is enable, an unnecessary unlink is attempted.

Fix this by restructuring logic related to deletion of the temporary
file.
src/ccache.c