btrfs-util: add assert to fix Coverity warning
authorLuca Boccassi <bluca@debian.org>
Tue, 21 May 2024 12:32:48 +0000 (13:32 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 May 2024 20:17:09 +0000 (22:17 +0200)
commit5e30e6e28190fe30e76e071b2eb99546abcee7e6
tree5c1917170adad2e643953c063d451658081f1680
parente603a438a7918a2fcc35d7683fd755d3837b7024
btrfs-util: add assert to fix Coverity warning

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 125cca1b51e19d9209a229fca4fb9d94d34c3e78
src/shared/btrfs-util.c