git.samba.org
/
anoopcs
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b4eb4d
)
ldb: Simplify ldb_errstring()
author
Jo Sutton
<josutton@catalyst.net.nz>
Wed, 24 Jan 2024 01:19:26 +0000
(14:19 +1300)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000
(
02:41
+0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/ldb.c
patch
|
blob
|
history
diff --git
a/lib/ldb/common/ldb.c
b/lib/ldb/common/ldb.c
index ceae258e3face6ab634f011a533e86981a680574..47bb503002a65e7bb73e902f49c6a8cd636a10cc 100644
(file)
--- a/
lib/ldb/common/ldb.c
+++ b/
lib/ldb/common/ldb.c
@@
-1965,11
+1965,7
@@
done:
*/
const char *ldb_errstring(struct ldb_context *ldb)
{
- if (ldb->err_string) {
- return ldb->err_string;
- }
-
- return NULL;
+ return ldb->err_string;
}
/*