Skip to content

Don't use a field before setting it

Emmanuele Bassi requested to merge ebassi/memdup into master

We are using the data->len field in our g_memdup() call before we're actually setting it; since the data structure is zero-filled, it means we're not copying the buffer at all.

Merge request reports