summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--types.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/types.c b/types.c
index 4672e1c..cc0f2b1 100644
--- a/types.c
+++ b/types.c
@@ -62,13 +62,13 @@ libvirt_charPtrWrap(char *str)
{
PyObject *ret;
-#ifdef DEBUG
- printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
-#endif
if (str == NULL) {
Py_INCREF(Py_None);
return (Py_None);
}
+#ifdef DEBUG
+ printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
+#endif
ret = PyString_FromString(str);
free(str);
return (ret);
@@ -79,13 +79,13 @@ libvirt_constcharPtrWrap(const char *str)
{
PyObject *ret;
-#ifdef DEBUG
- printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
-#endif
if (str == NULL) {
Py_INCREF(Py_None);
return (Py_None);
}
+#ifdef DEBUG
+ printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
+#endif
ret = PyString_FromString(str);
return (ret);
}
@@ -95,13 +95,13 @@ libvirt_charPtrConstWrap(const char *str)
{
PyObject *ret;
-#ifdef DEBUG
- printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
-#endif
if (str == NULL) {
Py_INCREF(Py_None);
return (Py_None);
}
+#ifdef DEBUG
+ printf("libvirt_xmlcharPtrWrap: str = %s\n", str);
+#endif
ret = PyString_FromString(str);
return (ret);
}