projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build system: Improve detection of the libnetlink library.
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
6333ab7
..
9ebfe27
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-695,7
+695,8
@@
int getpwnam_r (const char *name, struct passwd *pwbuf, char *buf,
pwbuf->pw_uid = pw->pw_uid;
pwbuf->pw_gid = pw->pw_gid;
- *pwbufp = pwbuf;
+ if (pwbufp != NULL)
+ *pwbufp = pwbuf;
} while (0);
pthread_mutex_unlock (&getpwnam_r_lock);