summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-07-01 21:00:23 +0200
committerNoel Power <npower@samba.org>2019-07-03 08:55:23 +0000
commit4ef5a42ca2025b10674a4800d471ea29735c0906 (patch)
tree9cb37b935d1fe2f45984e72d6c5240c85dff14f9 /lib/tdb
parentc3bad08e2b0913e5e49ffadb4780bb51154a3215 (diff)
downloadsamba-4ef5a42ca2025b10674a4800d471ea29735c0906.tar.gz
tdb: Adapt tdb_rescue() to README.Coding
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/common/rescue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/rescue.c b/lib/tdb/common/rescue.c
index 7e6580957bb..e608db41dea 100644
--- a/lib/tdb/common/rescue.c
+++ b/lib/tdb/common/rescue.c
@@ -300,7 +300,7 @@ _PUBLIC_ int tdb_rescue(struct tdb_context *tdb,
qsort(found.arr, found.num, sizeof(found.arr[0]), cmp_key);
}
- for (i = 0; found.arr && i < found.num; ) {
+ for (i = 0; (found.arr != NULL) && i < found.num; ) {
unsigned int num, num_in_hash = 0;
/* How many are identical? */