[libvirt] [PATCH v7 11/23] squash to checkpoint list

Eric Blake eblake at redhat.com
Wed Mar 27 10:10:42 UTC 2019


---
 src/conf/checkpoint_conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/checkpoint_conf.c b/src/conf/checkpoint_conf.c
index 3dd2acf886..01497a79f6 100644
--- a/src/conf/checkpoint_conf.c
+++ b/src/conf/checkpoint_conf.c
@@ -615,7 +615,7 @@ virDomainCheckpointRedefinePrep(virDomainPtr domain,
         return -1;

     other = virDomainCheckpointFindByName(vm->checkpoints, def->common.name);
-    otherdef = other ? virDomainCheckpointObjGetDef(other) : NULL;
+    otherdef = virDomainCheckpointObjGetDef(other);
     if (other) {
         if (!virDomainDefCheckABIStability(otherdef->common.dom,
                                            def->common.dom, xmlopt))
-- 
2.20.1




More information about the libvir-list mailing list