Unassigned userData value?

The userData void* seem to be assigned NULL on initialization, but can I trust it to always initialized to NULL? No difference in optimization, special conditions or preprocessor values?

I don't like to assume things. =) A lot of libraries prefer to not initialize values that the user assign anyway to save what little there is in performance.

Checking the userData for NULL/0 would seem obvious in that case, before trying to access it.
It's not mentioned in the manual as far as I could see, so the info could be a small but useful addition to the manual?

Cheers
My coding style is to always initialize pointers to NULL. For definitions, I initialize every field. Other stuff cannot be assumed to be initialized.
Good to know! Thanks for the info Erin. Consider my suggestion of adding it to the manual.
Cheerio

Original thread: https://box2d.org/forum/viewtopic.php?t=6620