Fixing uninitialized warning in waitpid