Because the function was initializing pid as 0, when the user passed pid=0 as an argument it was indistinguishable from not pid being passed at all. Closes https://github.com/VirusTotal/yara/issues/1480