/* XXX - replace with APIs that let us handle multiple comments.  */
void wtap_write_shb_comment(wtap *wth, gchar *comment)
/* XXX - replace with APIs that let us handle multiple comments.  */
void wtap_write_shb_comment(wtap *wth, gchar *comment)
{
	if ((wth != NULL) && (wth->shb_hdrs != NULL) && (wth->shb_hdrs->len > 0)) {
		wtap_block_set_nth_string_option_value(g_array_index(wth->shb_hdrs, wtap_block_t, 0), OPT_COMMENT, 0, comment, (gsize)(comment ? strlen(comment) : 0));
	}
}