diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-03-29 08:08:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:00 -0500 |
commit | 7bdd7ecafad307028b51fc0f8fe361f7acb53b7d (patch) | |
tree | 799554db6ddcffe96dfc7ac316989f6bf4dc00f6 | |
parent | e8265c651590155262d167210ba8e3a287ae7a0e (diff) | |
download | samba-7bdd7ecafad307028b51fc0f8fe361f7acb53b7d.tar.gz samba-7bdd7ecafad307028b51fc0f8fe361f7acb53b7d.tar.bz2 samba-7bdd7ecafad307028b51fc0f8fe361f7acb53b7d.zip |
r22007: make string_tdb_data(NULL) possible...
metze
(This used to be commit d03094708378bde088bf6e90efe54deb83d3952e)
-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); } /**************************************************************************** |