mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 19:05:24 +00:00
virshCheckpointListCollect: Do not pass NULL to qsort
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
89ce1ef86b
commit
1c34211c22
@ -628,7 +628,8 @@ virshCheckpointListCollect(vshControl *ctl,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(orig_flags & VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL))
|
if (!(orig_flags & VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL) &&
|
||||||
|
checkpointlist->chks)
|
||||||
qsort(checkpointlist->chks, checkpointlist->nchks,
|
qsort(checkpointlist->chks, checkpointlist->nchks,
|
||||||
sizeof(*checkpointlist->chks), virshChkSorter);
|
sizeof(*checkpointlist->chks), virshChkSorter);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user