do not enumerate builders returning NULL
This commit is contained in:
@@ -65,11 +65,17 @@ struct entry_t {
|
|||||||
*/
|
*/
|
||||||
static bool builder_filter(entry_t *data, entry_t **in, builder_t **out)
|
static bool builder_filter(entry_t *data, entry_t **in, builder_t **out)
|
||||||
{
|
{
|
||||||
|
builder_t *builder;
|
||||||
|
|
||||||
if (data->type == (*in)->type &&
|
if (data->type == (*in)->type &&
|
||||||
data->subtype == (*in)->subtype)
|
data->subtype == (*in)->subtype)
|
||||||
{
|
{
|
||||||
*out = (*in)->constructor(data->subtype);
|
builder = (*in)->constructor(data->subtype);
|
||||||
return TRUE;
|
if (builder)
|
||||||
|
{
|
||||||
|
*out = builder;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user