aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/lowlevel/xl/xl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c
index 8ca429a3c2..bbbf2a9cb6 100644
--- a/tools/python/xen/lowlevel/xl/xl.c
+++ b/tools/python/xen/lowlevel/xl/xl.c
@@ -408,8 +408,8 @@ static PyObject *pyxl_domid_to_name(XlObject *self, PyObject *args)
domname = libxl_domid_to_name(self->ctx, domid);
if (domname)
ret = PyString_FromString(domname);
- else
- Py_INCREF(Py_None);
+ else
+ Py_INCREF(Py_None);
free(domname);
return ret;