Module: ngircd.git Branch: master Commit: 3193d5477c9f70e34f7ae636e51771b8e6039138 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=3193d...
Author: Alexander Barton alex@barton.de Date: Tue Jan 3 20:49:42 2012 +0100
NGIRCd_getNobodyID(): Code cleanup
---
src/ngircd/ngircd.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index 170a3cd..ec2462a 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -555,9 +555,10 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid ) #endif
pwd = getpwnam("nobody"); - if (!pwd) return false; + if (!pwd) + return false;
- if ( !pwd->pw_uid || !pwd->pw_gid) + if (!pwd->pw_uid || !pwd->pw_gid) return false;
*uid = pwd->pw_uid;
ngircd-commits@lists.barton.de