evil: fix mistaken check of returned value by mkdir.

mkdir succeed with return == 0 !

@fix
This commit is contained in:
Cedric BAIL 2014-07-12 12:22:16 +02:00
parent 8c61dd268f
commit 5080dc4dff
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ mkdtemp(char *__template)
{
val = _mkstemp(suffix, val);
if (mkdir(__template))
if (mkdir(__template) == 0)
return __template;
if (errno == EFAULT ||