gsskrb5: Remove dead code in split_attr()

This commit is contained in:
Nicolas Williams
2022-01-17 11:01:19 -06:00
parent ad4e055831
commit fe63ddc487

View File

@@ -120,7 +120,7 @@ split_attr(gss_const_buffer_t orig,
/* FIXME We don't have a memrchr() in lib/roken */
for (p = memchr(p, ' ', orig->length);
p;
p = p ? memchr(p + 1, ' ', orig->length) : NULL) {
p = memchr(p + 1, ' ', orig->length)) {
last = p;
prefix->length = last - (const char *)orig->value;
attr->value = last + 1;