*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/thread.c,v 1.21 2004/06/07 22:39:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/thread.c,v 1.22 2004/06/08 01:45:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (strerror_r(errnum, strerrbuf, buflen) == 0)
return strerrbuf;
else
- return NULL;
+ return "Unknown error";
#else
/* GNU libc */
return strerror_r(errnum, strerrbuf, buflen);
*/
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
#endif
-
#else
/* no getpwuid_r() available, just use getpwuid() */