diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-04 01:28:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:44 -0500 |
commit | 81e05038b6fca971b060b649899999ae156091cd (patch) | |
tree | 1876dcee46be7c053d35aae7d7d8f00595b03bb0 | |
parent | 4601264b70ad57e6ad3827696eecb6648f211380 (diff) | |
download | samba-81e05038b6fca971b060b649899999ae156091cd.tar.gz samba-81e05038b6fca971b060b649899999ae156091cd.tar.bz2 samba-81e05038b6fca971b060b649899999ae156091cd.zip |
r12708: This is equivilant, but doesn't cause a warning.
Andrew Bartlett
(This used to be commit 964f7fc6ca4ac7578ca0d467392d4e174211b6e2)
-rw-r--r-- | source4/scripting/ejs/smbcalls_ldb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c index 78063ed6b4..f1d59ec2af 100644 --- a/source4/scripting/ejs/smbcalls_ldb.c +++ b/source4/scripting/ejs/smbcalls_ldb.c @@ -338,8 +338,7 @@ static int ejs_dn_escape(MprVarHandle eid, int argc, struct MprVar **argv) return -1; } - val.data = mprToString(argv[0]); - val.length = strlen((const char *)val.data); + val = data_blob_string_const(mprToString(argv[0])); ret = ldb_dn_escape_value(mprMemCtx(), val); if (ret == NULL) { |