(cuserid): If we don't find the UID, but have a user supplied buffer, return

the empty buffer, not NULL.
This commit is contained in:
Ulrich Drepper 2001-12-14 07:02:32 +00:00
parent 0153375730
commit 261e312c01

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1996, 1998, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -39,7 +39,7 @@ cuserid (s)
{
if (s != NULL)
s[0] = '\0';
return NULL;
return s;
}
if (s == NULL)