pts: Don't malloc(0) when there's nothing to do