Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjipeng committed Feb 17, 2025
1 parent 78ce36f commit 110999f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/svg/psx_xml_token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,11 @@ bool psx_xml_tokenizer(const char* xml_data, uint32_t data_len, xml_token_proces
{
psx_xml_token_t token;
_psx_token_init(&token);
xml_token_state_t state = { .flags = 0, .cur = xml_data, .end = xml_data + data_len };

xml_token_state_t state;
state.flags = 0;
state.cur = xml_data;
state.end = xml_data + data_len;

while (state.cur < state.end) {
char ch = *(state.cur);
Expand Down

0 comments on commit 110999f

Please sign in to comment.