mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
lib: Drop '&*' from '&*variable'
Apparently, some of '&*variable' slipped in. Drop '&*' and access the variable directly. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ani Sinha <ani@anisinha.ca>
This commit is contained in:
parent
07ddb4c6b3
commit
1861e9fda2
@ -1765,7 +1765,7 @@ qemuStorageSourcePrivateDataAssignSecinfo(qemuDomainSecretInfo **secinfo,
|
||||
*secinfo = g_new0(qemuDomainSecretInfo, 1);
|
||||
}
|
||||
|
||||
(*secinfo)->alias = g_steal_pointer(&*alias);
|
||||
(*secinfo)->alias = g_steal_pointer(alias);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -12221,7 +12221,7 @@ qemuConnectStealCPUModelFromInfo(virCPUDef *dst,
|
||||
|
||||
virCPUDefFreeModel(dst);
|
||||
|
||||
info = g_steal_pointer(&*src);
|
||||
info = g_steal_pointer(src);
|
||||
dst->model = g_steal_pointer(&info->name);
|
||||
|
||||
for (i = 0; i < info->nprops; i++) {
|
||||
|
@ -423,7 +423,7 @@ qemuMigrationCookieAddPersistent(qemuMigrationCookie *mig,
|
||||
if (!def || !*def)
|
||||
return 0;
|
||||
|
||||
mig->persistent = g_steal_pointer(&*def);
|
||||
mig->persistent = g_steal_pointer(def);
|
||||
mig->flags |= QEMU_MIGRATION_COOKIE_PERSISTENT;
|
||||
mig->flagsMandatory |= QEMU_MIGRATION_COOKIE_PERSISTENT;
|
||||
return 0;
|
||||
|
@ -286,18 +286,18 @@ int virNetClientStreamSetError(virNetClientStream *st,
|
||||
st->err.code = err.code;
|
||||
}
|
||||
if (err.message) {
|
||||
st->err.message = g_steal_pointer(&*err.message);
|
||||
st->err.message = g_steal_pointer(err.message);
|
||||
}
|
||||
st->err.domain = err.domain;
|
||||
st->err.level = err.level;
|
||||
if (err.str1) {
|
||||
st->err.str1 = g_steal_pointer(&*err.str1);
|
||||
st->err.str1 = g_steal_pointer(err.str1);
|
||||
}
|
||||
if (err.str2) {
|
||||
st->err.str2 = g_steal_pointer(&*err.str2);
|
||||
st->err.str2 = g_steal_pointer(err.str2);
|
||||
}
|
||||
if (err.str3) {
|
||||
st->err.str3 = g_steal_pointer(&*err.str3);
|
||||
st->err.str3 = g_steal_pointer(err.str3);
|
||||
}
|
||||
st->err.int1 = err.int1;
|
||||
st->err.int2 = err.int2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user