git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd6ff4d
)
nsswitch: Remove a pointless if-clause
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Feb 2012 20:20:21 +0000
(21:20 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 25 Feb 2012 21:14:38 +0000
(22:14 +0100)
gr->num_gr_mem is a uint32, so it can never be < 0
nsswitch/winbind_nss_linux.c
patch
|
blob
|
history
diff --git
a/nsswitch/winbind_nss_linux.c
b/nsswitch/winbind_nss_linux.c
index 7b1675204342e55d665bf619985ff79f6b86b8c1..8d66a740a697d4582c6d5fea34d82c3034761f6c 100644
(file)
--- a/
nsswitch/winbind_nss_linux.c
+++ b/
nsswitch/winbind_nss_linux.c
@@
-322,7
+322,7
@@
static NSS_STATUS fill_grent(struct group *result, struct winbindd_gr *gr,
/* Group membership */
- if (
(gr->num_gr_mem < 0) ||
!gr_mem) {
+ if (!gr_mem) {
gr->num_gr_mem = 0;
}