Skip to content

Commit 43e912c

Browse files
jpnurmiclaude
andcommitted
fix(retry): zero-initialize retry struct after malloc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 344d7b2 commit 43e912c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sentry_retry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ sentry__retry_new(const sentry_options_t *options)
3131
if (!retry) {
3232
return NULL;
3333
}
34+
memset(retry, 0, sizeof(sentry_retry_t));
3435
retry->cache_path = sentry__path_clone(options->run->cache_path);
3536
retry->cache_keep = options->cache_keep;
3637
retry->startup_time = sentry__usec_time() / 1000;
37-
retry->sealed = 0;
3838
sentry__path_create_dir_all(options->run->cache_path);
3939
return retry;
4040
}

0 commit comments

Comments
 (0)