diff options
Diffstat (limited to 'src/libposixplz/getpeereid.c')
-rw-r--r-- | src/libposixplz/getpeereid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libposixplz/getpeereid.c b/src/libposixplz/getpeereid.c index ae1142f..033a0af 100644 --- a/src/libposixplz/getpeereid.c +++ b/src/libposixplz/getpeereid.c @@ -38,7 +38,7 @@ int getpeereid (int s, uid_t *u, gid_t *g) int getpeereid (int s, uid_t *u, gid_t *g) { - ucred_t *cred ; + ucred_t *cred = 0 ; if (getpeerucred(s, &cred) == -1) return -1 ; *u = ucred_geteuid(cred) ; *g = ucred_getegid(cred) ; |