[eglib] check if result is set
commit618ef61ae9b04f18aa377b629e660f9a7205067b
authorBernhard Urban <bernhard.urban@xamarin.com>
Tue, 17 Oct 2017 19:29:28 +0000 (17 21:29 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Wed, 18 Oct 2017 06:55:52 +0000 (18 08:55 +0200)
tree5722431fe9fbc144d6e4bc09bba9357182997fb1
parent464c5916d52fea6590bb23cfc84b47e064fc3e66
[eglib] check if result is set

quote from the darwin man page:

> The functions getpwnam_r(), getpwuid_r(), and getpwuuid_r()
> return 0 if no error occurred, or an error number to indicate
> failure.  It is not an error if a matching entry is not found.
> (Thus, if result is NULL and the return value is 0, no
> matching entry exists.)
mono/eglib/gmisc-unix.c