diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-22 14:10:52 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-30 16:01:17 +0200 |
commit | ad549072aa72ce27fd58246b92888d8299043398 (patch) | |
tree | 958aacfdfcaf2a5318af73affefdb72ddc7286f3 | |
parent | 2529def9fd28a0090a732443aea849cdad2315f5 (diff) | |
download | samba-ad549072aa72ce27fd58246b92888d8299043398.tar.gz samba-ad549072aa72ce27fd58246b92888d8299043398.tar.bz2 samba-ad549072aa72ce27fd58246b92888d8299043398.zip |
s4:pyldb - Fixed the return value in "py_ldb_msg_diff"
The case distinction shouldn't be needed also when "diff" is NULL.
"PyLdbMessage_FromMessage" works with "NULL" arguments.
-rw-r--r-- | source4/lib/ldb/pyldb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 1ba5109f2f..0fe4da9887 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -956,8 +956,6 @@ static PyObject *py_ldb_msg_diff(PyLdbObject *self, PyObject *args) } diff = ldb_msg_diff(PyLdb_AsLdbContext(self), PyLdbMessage_AsMessage(py_msg_old), PyLdbMessage_AsMessage(py_msg_new)); - if (diff == NULL) - return NULL; py_ret = PyLdbMessage_FromMessage(diff); |