summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
65353dc)
The case of returning NULL is not tested in `globset_add`.
It is safe because `grow` is called first and then `search`
never returns a NULL pointer.
Bug-AGL: SPEC-3134
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I21e8ba3a6c8202a920c6784f4d61376450b9a063
pph = &set->globs;
else if (set->exacts)
pph = &set->exacts[hash & set->gmask];
pph = &set->globs;
else if (set->exacts)
pph = &set->exacts[hash & set->gmask];
+ else {
+ *pprev = NULL;
while ((ph = *pph) && strcmp(normal, ph->handler.pattern))
pph = &ph->next;
*pprev = pph;
return ph;
}
while ((ph = *pph) && strcmp(normal, ph->handler.pattern))
pph = &ph->next;
*pprev = pph;
return ph;
}
/**
* Allocates a new set of handlers
*
/**
* Allocates a new set of handlers
*