Minor renaming of internal API function

This commit is contained in:
Aaron Culliney 2017-07-01 11:43:00 -07:00
parent 25a0f69a5f
commit c30c50be06
2 changed files with 4 additions and 4 deletions

View File

@ -1065,13 +1065,13 @@ bool json_serialize(JSON_ref jsonRef, int fd, bool pretty) {
}
}
bool json_unescapeSlashes(char **kbdPath) {
bool json_unescapeSlashes(char **strPtr) {
// A big "fhank-you" to the Java org.json.JSONStringer API which "helpfully" escapes slash '/' characters
if (!kbdPath) {
if (!strPtr) {
return false;
}
char *str = *kbdPath;
char *str = *strPtr;
size_t len = strlen(str) + 1; // include termination \0
char *p0 = NULL;
char *p = str;

View File

@ -107,7 +107,7 @@ bool json_arrayParseFloatValueAtIndex(const JSON_ref array, unsigned long index,
bool json_serialize(JSON_ref json, int fd, bool pretty);
// unescape all \/ characters (<sigh> a big fhank you to Java org.json.JSONXXX !)
bool json_unescapeSlashes(char **kbdPath);
bool json_unescapeSlashes(char **strPtr);
// ----------------------------------------------------------------------------
// destructor