Skip to content

Commit b503ec0

Browse files
committed
sentry__value_to_json
1 parent 206996e commit b503ec0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/backends/native/sentry_crash_daemon.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,11 +2617,13 @@ write_envelope_with_minidump(const sentry_options_t *options,
26172617
#if defined(SENTRY_PLATFORM_WINDOWS)
26182618
add_wer_context(event, ctx);
26192619
#endif
2620-
char *updated_event_json = sentry_value_to_json(event);
2621-
if (updated_event_json) {
2620+
size_t new_event_size = 0;
2621+
char *new_event_json
2622+
= sentry__value_to_json(event, &new_event_size);
2623+
if (new_event_json) {
26222624
sentry_free(event_json);
2623-
event_json = updated_event_json;
2624-
event_size = strlen(event_json);
2625+
event_json = new_event_json;
2626+
event_size = new_event_size;
26252627
}
26262628
}
26272629
sentry_value_decref(event);

0 commit comments

Comments
 (0)