Why initialized p to arg here, when it initialized again later at line 1172 before it is used.