Hello. In reply to this mail, I'll send some patches. (They are untested)
I also planned to send a coccinelle-generated patch, but I didn't review it, so it would be a bit pointless. Anyway, this is the coccinelle patch: @@ expression *p; @@ - p = 0 + p = NULL Thanks, Jonathan Neuschäfer