30 Marzo, 11:18am

notes of reading code

Is this valid?

1
self->scans = malloc(self->max_scans * sizeof(self->scans[0])

You're using the derreferencing of a unallocated variable for setting it's size... but it works! mmmhhh...