Pass variable by pointer (Found by Coverity: CID 1109732)