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

btrfs-util: add assert to fix Coverity warning #32955

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

bluca
Copy link
Member

@bluca bluca commented May 21, 2024

Coverity gets confused since the iterator change, so add an assert to indicate that this is allocated if n_old_groups is > 0

CID#1545922

Follow-up for 125cca1

Coverity gets confused since the iterator change, so add an
assert to indicate that this is allocated if n_old_groups is > 0

CID#1545922

Follow-up for 125cca1
@bluca bluca added this to the v256 milestone May 21, 2024
@github-actions github-actions bot added btrfs util-lib please-review PR is ready for (re-)review by a maintainer labels May 21, 2024
@YHNdnzj YHNdnzj added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed quick-review 🏃‍♂️ please-review PR is ready for (re-)review by a maintainer labels May 21, 2024
@bluca bluca merged commit 5e30e6e into systemd:main May 21, 2024
46 of 49 checks passed
@bluca bluca deleted the coverity branch May 21, 2024 20:17
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants