|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Allow xc_domain_info_t to be optional in xc_domain_getfu
ChangeSet 1.1837, 2005/04/18 22:53:33+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx
Allow xc_domain_info_t to be optional in xc_domain_getfullinfo
From: Kip Macy
Signed-off-by: ian@xxxxxxxxxxxxx
xc_domain.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c 2005-04-18 21:08:45 -04:00
+++ b/tools/libxc/xc_domain.c 2005-04-18 21:08:45 -04:00
@@ -132,7 +132,8 @@
rc = do_dom0_op(xc_handle, &op);
- memcpy(info, &op.u.getdomaininfo, sizeof(*info));
+ if ( info )
+ memcpy(info, &op.u.getdomaininfo, sizeof(*info));
if ( ((u16)op.u.getdomaininfo.domain != domid) && rc > 0 )
return -ESRCH;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|