diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-23 14:38:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-23 14:38:35 +0100 |
commit | c0151e6c6486ce3ae3623e616326fae626f32eb2 (patch) | |
tree | 070d464188bfe4dd46c21c54a30389be483c6b5b | |
parent | sys/endian.h: Document FreeBSD origin (diff) | |
download | rtems-c0151e6c6486ce3ae3623e616326fae626f32eb2.tar.bz2 |
nfsclient: Fix suspicious condition
Close #2700.
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/rpcio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.c b/cpukit/libfs/src/nfsclient/src/rpcio.c index 284822515b..e038e737b9 100644 --- a/cpukit/libfs/src/nfsclient/src/rpcio.c +++ b/cpukit/libfs/src/nfsclient/src/rpcio.c @@ -521,7 +521,8 @@ struct pmap pmaparg; return RPC_UNKNOWNHOST; } - if ( (len = getgroups(NGROUPS, gids) < 0 ) ) { + len = getgroups(NGROUPS, gids); + if (len < 0 ) { fprintf(stderr, "RPCIO - error: I unable to get group ids (%s)\n", strerror(errno)); |