Skip to content

Commit 221a460

Browse files
use custom strdup
1 parent 2e7e51b commit 221a460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/logic/fson.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,9 @@ char *fossil_media_fson_roundtrip(const char *json_text, int pretty, fossil_medi
940940
// If stringification failed but parse was OK, return minimal valid output
941941
if (!result && err_out && err_out->code == FOSSIL_MEDIA_FSON_OK) {
942942
if (value->type == FSON_TYPE_OBJECT) {
943-
result = strdup("{}");
943+
result = fossil_media_strdup("{}");
944944
} else if (value->type == FSON_TYPE_ARRAY) {
945-
result = strdup("[]");
945+
result = fossil_media_strdup("[]");
946946
}
947947
}
948948

0 commit comments

Comments
 (0)