libctf: Adjust logic to match upstream after 410556f1f
No functional change intended. Suggested by: jrtc27 MFC after: 1 week
This commit is contained in:
parent
6a762cfae1
commit
3c065eeaa7
@ -132,9 +132,9 @@ ctf_lookup_by_name(ctf_file_t *fp, const char *name)
|
||||
continue; /* skip qualifier keyword */
|
||||
|
||||
for (lp = fp->ctf_lookups; lp->ctl_prefix != NULL; lp++) {
|
||||
if ((size_t)(q - p) >= lp->ctl_len &&
|
||||
(lp->ctl_prefix[0] == '\0' ||
|
||||
strncmp(p, lp->ctl_prefix, (size_t)(q - p)) == 0)) {
|
||||
if (lp->ctl_prefix[0] == '\0' ||
|
||||
((size_t)(q - p) >= lp->ctl_len && strncmp(p,
|
||||
lp->ctl_prefix, (size_t)(q - p)) == 0)) {
|
||||
for (p += lp->ctl_len; isspace(*p); p++)
|
||||
continue; /* skip prefix and next ws */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user