diff options
author | Florian Walch <florian@fwalch.com> | 2014-11-26 15:04:33 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-24 00:32:26 -0500 |
commit | ed9828140a343145e247a76e175912dcd785899d (patch) | |
tree | 954ac1472c824b97e75b49cd79e07a05aeda5065 | |
parent | 0f258e44530aa4c7b8266a548806159584fc3197 (diff) | |
download | rneovim-ed9828140a343145e247a76e175912dcd785899d.tar.gz rneovim-ed9828140a343145e247a76e175912dcd785899d.tar.bz2 rneovim-ed9828140a343145e247a76e175912dcd785899d.zip |
Linting: Suppress warnings in os/users.c.
-rw-r--r-- | src/nvim/os/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/users.c b/src/nvim/os/users.c index 99479b0bae..a57ba41af1 100644 --- a/src/nvim/os/users.c +++ b/src/nvim/os/users.c @@ -52,7 +52,7 @@ int os_get_uname(uid_t uid, char *s, size_t len) #if defined(HAVE_PWD_H) && defined(HAVE_GETPWUID) struct passwd *pw; - if ((pw = getpwuid(uid)) != NULL + if ((pw = getpwuid(uid)) != NULL // NOLINT(runtime/threadsafe_fn) && pw->pw_name != NULL && *(pw->pw_name) != NUL) { STRLCPY(s, pw->pw_name, len); return OK; @@ -72,7 +72,7 @@ char *os_get_user_directory(const char *name) if (name == NULL) { return NULL; } - pw = getpwnam(name); + pw = getpwnam(name); // NOLINT(runtime/threadsafe_fn) if (pw != NULL) { // save the string from the static passwd entry into malloced memory return xstrdup(pw->pw_dir); |