The code was previously trying to print a NULL string in this case, which
is obviously what we don't want to do.
selected = (params->part <= 0 || state->part_count == params->part);
if (selected || state->in_zone) {
- if (!first && (params->part <= 0 || state->in_zone))
+ if (!first && (params->part <= 0 || state->in_zone) && format->part_sep)
fputs (format->part_sep, stdout);
format->part (part, &(state->part_count));