diff --git a/source/posix/system_resource_utils.c b/source/posix/system_resource_utils.c index 1f8f5a723..053cb8eff 100644 --- a/source/posix/system_resource_utils.c +++ b/source/posix/system_resource_utils.c @@ -10,7 +10,7 @@ int aws_init_memory_usage_for_current_process(struct aws_memory_usage *memory_usage) { AWS_PRECONDITION(memory_usage); - AWS_ZERO_STRUCT(memory_usage); + AWS_ZERO_STRUCT(*memory_usage); struct rusage usage; if (getrusage(RUSAGE_SELF, &usage)) {