mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
(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:
parent
0153375730
commit
261e312c01
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user