Given the logic in xfs_scrub_connections, it's possible to
fail all 3 tests and wind up checking an uninitialized moveon
variable at the end. Start out with "true" to avoid this and
move on even if all the conditions in the function are false.
Fixes-coverity-id:
1433617
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
{
bool *pmoveon = arg;
char descr[DESCR_BUFSZ];
- bool moveon;
+ bool moveon = true;
xfs_agnumber_t agno;
xfs_agino_t agino;
int fd = -1;