This `if` seems odd with the line before initializing `proto` to NULL ...