Skip to content

Commit

Permalink
objectserver: Use calloc instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Dec 30, 2024
1 parent 4b9da8a commit 82769bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adbg/objectserver.d
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export
adbg_object_t* adbg_object_open_file(const(char) *path, ...) {
version (Trace) trace("path=%s", path);

adbg_object_t *o = cast(adbg_object_t*)malloc(adbg_object_t.sizeof);
adbg_object_t *o = cast(adbg_object_t*)calloc(1, adbg_object_t.sizeof);
if (o == null) {
adbg_oops(AdbgError.crt);
return null;
Expand Down

0 comments on commit 82769bc

Please sign in to comment.