diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/util_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util_tdb.c b/lib/util/util_tdb.c index 0c30d7774d..f239797c47 100644 --- a/lib/util/util_tdb.c +++ b/lib/util/util_tdb.c @@ -46,7 +46,8 @@ bool tdb_data_equal(TDB_DATA t1, TDB_DATA t2) return (memcmp(t1.dptr, t2.dptr, t1.dsize) == 0); } -bool tdb_data_is_empty(TDB_DATA d) { +bool tdb_data_is_empty(TDB_DATA d) +{ return (d.dsize == 0) || (d.dptr == NULL); } |