
<       else if (!join_lines && *col_sep_string == '\t') // In this case, col_sep_length must be 1.
---
>       else if (!join_lines && *(col_sep_string ? col_sep_string : "") == '\t') // In this case, col_sep_length must be 1.
