On Tue, 2023-11-07 at 19:11 +0100, Danilo Krummrich wrote:
I think the problem already starts with gf100_bar_new_() not setting its
pbar argument to NULL on failure, but this code assuming that.
Isn't it standard procedure for functions not to write to output parameters on failure?
Generally, I think it would be better if all those functions would return
an ERR_PTR on failure.
Agreed.