Skip to content

Commit

Permalink
Merge pull request #5535 from wlemkows/coverity-issues
Browse files Browse the repository at this point in the history
common: fix coverity issue
  • Loading branch information
wlemkows authored Feb 8, 2023
2 parents 8d3d848 + ae798ae commit 3c623ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libpmempool/feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ poolset_open(const char *path, int rdonly)

/* open a memory pool */
unsigned flags = get_pool_open_flags(set, rdonly);
if (util_pool_open_nocheck(set, flags))
if (util_pool_open_nocheck(set, flags)) {
set = NULL;
goto err_open;
}

/* map all headers and check features */
for (unsigned r = 0; r < set->nreplicas; ++r) {
Expand Down

0 comments on commit 3c623ae

Please sign in to comment.