Anton Khirnov <[email protected]> writes:

>  
>       regexv = talloc_realloc (notmuch, regexv, regex_t, nregex + 1);
> +     if (nregex == 0)
> +         talloc_set_destructor (regexv, _index_as_text_free);
> +

I finally undestood the logic here, but it is bit surprising when just
looking at this part of the code, so please explain in a comment. A more
fulsome commit message would also be welcome.
_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to