Fix a couple of gcc warnings

These should fix the warnings gcc gives.
Initialise `intersectionPos` and get the address of the first element of `padname` instead of `padname` itself.