Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gitmkdtemp: correct test for mktemp() return value
In gitmkdtemp, the return value of mktemp is not tested correctly. mktemp() always returns its 'template' argument, even upon failure. An error is signalled by making the template an empty string. Signed-off-by: Filippo Negroni <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information