Fix comparison of an array of characters with zero to compare with '\0' instead.

Report from Andres Freund.