summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-08 18:24:08 +0100
committerVolker Lendecke <vlendec@samba.org>2011-03-10 10:25:19 +0100
commitc22151ea3a7fe0e07e46802ec7cd57ba1694262f (patch)
tree8f257eccba0a4b04ee8cdd171ace78b7dc554000 /nsswitch/libwbclient
parent494d497b99df08603555ff6a981482937d44b124 (diff)
downloadsamba-c22151ea3a7fe0e07e46802ec7cd57ba1694262f.tar.gz
samba-c22151ea3a7fe0e07e46802ec7cd57ba1694262f.tar.bz2
samba-c22151ea3a7fe0e07e46802ec7cd57ba1694262f.zip
libwbclient: Remove a pointless check
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r--nsswitch/libwbclient/wbc_sid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c
index e94d874a48..e8148aa7f8 100644
--- a/nsswitch/libwbclient/wbc_sid.c
+++ b/nsswitch/libwbclient/wbc_sid.c
@@ -152,8 +152,9 @@ wbcErr wbcStringToSid(const char *str,
}
sid->sub_auths[sid->num_auths++] = x;
- if ((*q!='-') || (*q=='\0'))
+ if (*q != '-') {
break;
+ }
p = q + 1;
}