aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorShriram Rajagopalan <rshriram@cs.ubc.ca>2012-02-20 18:34:14 +0000
committerShriram Rajagopalan <rshriram@cs.ubc.ca>2012-02-20 18:34:14 +0000
commit3b2127db86eeddbec9dd201494d693c77ae1317f (patch)
tree8de0dfe26c44c2517bd40b1195465dff42ce23f0 /tools/python
parent8ae741f167efaa6d7567af1c6358f2f2467d6058 (diff)
downloadxen-3b2127db86eeddbec9dd201494d693c77ae1317f.tar.gz
xen-3b2127db86eeddbec9dd201494d693c77ae1317f.tar.bz2
xen-3b2127db86eeddbec9dd201494d693c77ae1317f.zip
remus: libcheckpoint - initialize unused callback fields to NULL
Add a memset to the save_callbacks struct instance in libcheckpoint's initialization code. New additions to the callback struct will not need to add an explicit initialization (to NULL), to maintain compatibility with older xend/remus based invocation of xc_domain_save. Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/lowlevel/checkpoint/checkpoint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/python/xen/lowlevel/checkpoint/checkpoint.c b/tools/python/xen/lowlevel/checkpoint/checkpoint.c
index 6ffb1676fc..9170778187 100644
--- a/tools/python/xen/lowlevel/checkpoint/checkpoint.c
+++ b/tools/python/xen/lowlevel/checkpoint/checkpoint.c
@@ -155,6 +155,7 @@ static PyObject* pycheckpoint_start(PyObject* obj, PyObject* args) {
} else
self->checkpoint_cb = NULL;
+ memset(&callbacks, 0, sizeof(callbacks));
callbacks.suspend = suspend_trampoline;
callbacks.postcopy = postcopy_trampoline;
callbacks.checkpoint = checkpoint_trampoline;