Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obj: fix coverity issue 1976786 #6049

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/libpmemobj/ctl_debug.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2018-2021, Intel Corporation */
/* Copyright 2018-2024, Intel Corporation */

/*
* ctl_debug.c -- implementation of the debug CTL namespace
Expand Down Expand Up @@ -38,6 +38,8 @@

PMEMobjpool *pop = ctx;
int *arg_out = arg;
if (pop == NULL)
return -1;

Check warning on line 42 in src/libpmemobj/ctl_debug.c

View check run for this annotation

Codecov / codecov/patch

src/libpmemobj/ctl_debug.c#L42

Added line #L42 was not covered by tests

*arg_out = pop->heap.alloc_pattern;
return 0;
Expand Down
Loading