Changeset 552da22 for lib/json_util.c
- Timestamp:
- 2023-04-01T20:29:42Z (13 months ago)
- Branches:
- master
- Children:
- 10425b2
- Parents:
- a4ac9c4
- git-author:
- David Cantrell <dcantrell@…> (01-04-23 20:29:42)
- git-committer:
- GitHub <noreply@…> (01-04-23 20:29:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/json_util.c
ra4ac9c4 r552da22 27 27 28 28 #include "json_util.h" 29 30 /* g_memdup() deprecated as of glib 2.68.0 */ 31 #ifdef GLIB_VERSION_2_68 32 #define g_memdup2 g_memdup2 33 #else 34 #define g_memdup2 g_memdup 35 #endif 29 36 30 37 json_value *json_o_get(const json_value *obj, const json_char *name) … … 61 68 62 69 if (ret && ret->type == json_string && ret->u.string.ptr) { 63 return g_memdup (ret->u.string.ptr, ret->u.string.length + 1);70 return g_memdup2(ret->u.string.ptr, ret->u.string.length + 1); 64 71 } else { 65 72 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.