diff options
Diffstat (limited to 'src/conf/snapshot_conf.c')
-rw-r--r-- | src/conf/snapshot_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index 4ce120451e..8e4f3d9410 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -967,7 +967,7 @@ virDomainSnapshotRedefinePrep(virDomainPtr domain, } other = virDomainSnapshotFindByName(vm->snapshots, def->common.name); - otherdef = other ? virDomainSnapshotObjGetDef(other) : NULL; + otherdef = virDomainSnapshotObjGetDef(other); check_if_stolen = other && otherdef->common.dom; if (virDomainSnapshotRedefineValidate(def, domain->uuid, other, xmlopt, flags) < 0) { |