Skip to content

Fix dependency on implementation-defined calloc(0) behaviour

Cairo depends on calloc(0) returning a valid memory block but that is not guaranteed because it's implementation-defined. So we should add 1 to num_subs to make sure the code doesn't fail on systems where calloc(0) returns NULL.

Merge request reports