From 78bcecd109992f279ca245ae59c96349a90b7e7d Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 12 May 2013 12:23:16 +0000 Subject: [PATCH] errno is an integer, not a pointer. --- cui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cui.cpp b/cui.cpp index 1e2bd14..f31ea20 100644 --- a/cui.cpp +++ b/cui.cpp @@ -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);