Lines Matching refs:path_copy
189 char *path_copy = NULL; in json_pointer_get() local
206 if (!(path_copy = strdup(path))) in json_pointer_get()
211 rc = json_pointer_get_recursive(obj, path_copy, res); in json_pointer_get()
212 free(path_copy); in json_pointer_get()
219 char *path_copy = NULL; in json_pointer_getf() local
230 rc = vasprintf(&path_copy, path_fmt, args); in json_pointer_getf()
236 if (path_copy[0] == '\0') in json_pointer_getf()
243 rc = json_pointer_get_recursive(obj, path_copy, res); in json_pointer_getf()
245 free(path_copy); in json_pointer_getf()
253 char *path_copy = NULL; in json_pointer_set() local
284 if (!(path_copy = strdup(path))) in json_pointer_set()
289 path_copy[endp - path] = '\0'; in json_pointer_set()
290 rc = json_pointer_get_recursive(*obj, path_copy, &set); in json_pointer_set()
291 free(path_copy); in json_pointer_set()
304 char *path_copy = NULL; in json_pointer_setf() local
317 rc = vasprintf(&path_copy, path_fmt, args); in json_pointer_setf()
323 if (path_copy[0] == '\0') in json_pointer_setf()
330 if (path_copy[0] != '/') in json_pointer_setf()
338 if ((endp = strrchr(path_copy, '/')) == path_copy) in json_pointer_setf()
345 rc = json_pointer_get_recursive(*obj, path_copy, &set); in json_pointer_setf()
354 free(path_copy); in json_pointer_setf()