Skip to content

Commit 482cb9d

Browse files
committed
End csv print strucutre with comma
1 parent 26e0a5c commit 482cb9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xdr.c

+3
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,9 @@ void XDR_print_structure(uint32_t type, struct XDR_StructDefinition *str,
13141314
if (str->decoder(buff, data, &used, len, str->arg) >= 0)
13151315
str->print_func((FILE*)arg, data, str->arg, parent, style, &line, 0);
13161316

1317+
if (style == XDR_PRINT_CSV_DATA || style == XDR_PRINT_CSV_HEADER)
1318+
fprintf((FILE*)arg, ",");
1319+
13171320
str->deallocator(&data, str);
13181321
}
13191322

0 commit comments

Comments
 (0)