Skip to content

Commit

Permalink
Merge pull request #218 from bazsi/filterx-format-csv-delimiter-appen…
Browse files Browse the repository at this point in the history
…d-fix

csvparser: properly append the delimiter character to the resulting stirng in format_csv()
  • Loading branch information
MrAnno authored Jul 20, 2024
2 parents 773147d + c61d8fe commit 1799eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/csvparser/filterx-func-format-csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _append_to_buffer(FilterXObject *key, FilterXObject *value, gpointer user_data)
}

if (buffer->len)
g_string_append(buffer, &self->delimiter);
g_string_append_c(buffer, self->delimiter);

gsize len_before_value = buffer->len;
if (!filterx_object_repr_append(value, buffer))
Expand Down

0 comments on commit 1799eb8

Please sign in to comment.