errno: fix non-windows builds after af0216251b

This commit is contained in:
Daniel Stenberg 2017-07-10 13:58:35 +02:00
parent 793e831bbf
commit a5834e525d
2 changed files with 8 additions and 6 deletions

View file

@ -147,7 +147,7 @@ static bool countcheck(const char *func, int line, const char *source)
source, line, func);
fflush(logfile); /* because it might crash now */
}
SET_ERRNO(ENOMEM);
errno = ENOMEM;
return TRUE; /* RETURN ERROR! */
}
else