I think it's even better to change the commit to  0a5e77c because there the pointer are used in the intended way and is better to understand if someone reads the code.
I'll amend the commit accordingly.