Remove trailing comma after reading strParseIntWithKey (#259)

This commit is contained in:
Vasilii Rogin 2023-05-23 23:51:04 +03:00 committed by GitHub
parent 42c541012c
commit 53a4437be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,10 @@ int strParseIntWithKey(char** stringPtr, const char* key, int* valuePtr, const c
*(str + v4) = tmp2;
*(str + v2) = tmp1;
if (**stringPtr == ',') {
*stringPtr = *stringPtr + 1;
}
return result;
}