>From 00b2a96d93d801d06eb710bc03b3e4804d3583ec Mon Sep 17 00:00:00 2001 From: Filippo Negroni Date: Thu, 25 Feb 2010 08:39:35 +0000 Subject: [PATCH] Fixed return value check for mkdtemp implementation. mktemp() returns an 'empty' string, not a NULL pointer. --- compat/mkdtemp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compat/mkdtemp.c b/compat/mkdtemp.c index 34d4b49..1136119 100644 --- a/compat/mkdtemp.c +++ b/compat/mkdtemp.c @@ -2,7 +2,7 @@ char *gitmkdtemp(char *template) { - if (!mktemp(template) || mkdir(template, 0700)) + if (!*mktemp(template) || mkdir(template, 0700)) return NULL; return template; } -- 1.6.4