1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-22 11:13:21 +00:00

Fixed bug with ILibParseString, if offset was specified

This commit is contained in:
Bryan Roe
2020-07-28 15:16:40 -07:00
parent 3757910295
commit 182469a82c

View File

@@ -5556,6 +5556,7 @@ struct parser_result* ILibParseString(char* buffer, int offset, int length, cons
int TokenLength = 0;
struct parser_result* RetVal;
struct parser_result_field *p_resultfield;
if (offset > 0) { buffer += offset; offset = 0; }
if ((RetVal = (struct parser_result*)malloc(sizeof(struct parser_result))) == NULL) ILIBCRITICALEXIT(254);
RetVal->FirstResult = NULL;