diff options
-rw-r--r-- | source3/lib/util_tdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index 66ea929e81..5f96580120 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -53,12 +53,12 @@ TDB_DATA make_tdb_data(const char *dptr, size_t dsize) TDB_DATA string_tdb_data(const char *string) { - return make_tdb_data(string, strlen(string)); + return make_tdb_data(string, string ? strlen(string) : 0 ); } TDB_DATA string_term_tdb_data(const char *string) { - return make_tdb_data(string, strlen(string) + 1); + return make_tdb_data(string, string ? strlen(string) + 1 : 0); } /**************************************************************************** |