[SCM] Samba Shared Repository - branch master updated

Matthias Dieter Wallnöfer mdw at samba.org
Wed Apr 7 12:44:07 MDT 2010


The branch, master has been updated
       via  baf81a0... LDB:python bindings - also empty LDB message elements should have a python representation
      from  79fccc4... s4:registry - "regf backend" - fix it up regarding REG_DWORD/REG_DWORD_BIG_ENDIAN_VALUES

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit baf81a0e08099dc863a014eb6e03b6e877ae8b93
Author: Matthias Dieter Wallnöfer <mwallnoefer at yahoo.de>
Date:   Wed Apr 7 20:40:06 2010 +0200

    LDB:python bindings - also empty LDB message elements should have a python representation
    
    Bug found by ekacnet (see technical mailing list).

-----------------------------------------------------------------------

Summary of changes:
 source4/lib/ldb/pyldb.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 4ff56b4..737d3fb 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -1827,9 +1827,12 @@ static PyObject *py_ldb_msg_element_repr(PyLdbMessageElementObject *self)
 			element_str = talloc_asprintf_append(element_str, ",%s", PyObject_REPR(o));
 	}
 
-	ret = PyString_FromFormat("MessageElement([%s])", element_str);
-
-	talloc_free(element_str);
+	if (element_str != NULL) {
+		ret = PyString_FromFormat("MessageElement([%s])", element_str);
+		talloc_free(element_str);
+	} else {
+		ret = PyString_FromString("MessageElement([])");
+	}
 
 	return ret;
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list