Skip to content

Commit

Permalink
Use tidyBufInit to initialize buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sude- committed May 26, 2024
1 parent ebdee25 commit 1567c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,10 @@ std::string Util::transformGamename(const std::string& gamename)
std::string Util::htmlToXhtml(const std::string& html)
{
std::string xhtml;
TidyBuffer buffer = {0, 0, 0, 0, 0};
TidyBuffer buffer;
int rc = -1;
TidyDoc doc = tidyCreate();
tidyBufInit(&buffer);

tidyOptSetBool(doc, TidyXhtmlOut, yes);
tidyOptSetBool(doc, TidyForceOutput, yes);
Expand Down

0 comments on commit 1567c2a

Please sign in to comment.