Skip to content

Commit

Permalink
Initializing serdata.loan doesn't need memset
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Sep 6, 2023
1 parent 395b5ef commit 7ece102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ddsi/src/ddsi_serdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void ddsi_serdata_init (struct ddsi_serdata *d, const struct ddsi_sertype *tp, e
d->statusinfo = 0;
d->timestamp.v = INT64_MIN;
d->twrite.v = INT64_MIN;
memset(&d->loan, 0, sizeof(d->loan));
d->loan = NULL;
ddsrt_atomic_st32 (&d->refc, 1);
}

Expand Down

0 comments on commit 7ece102

Please sign in to comment.