errno is an integer, not a pointer.

This commit is contained in:
Arnout Engelen
2013-05-12 12:23:16 +00:00
parent 7305a07579
commit 78bcecd109

View File

@@ -91,7 +91,7 @@ std::string itoa(int i)
std::string uid2username (uid_t uid)
{
struct passwd * pwd = NULL;
errno = NULL;
errno = 0;
/* points to a static memory area, should not be freed */
pwd = getpwuid(uid);