From 9044fc0234ed65056f087a86c7c117922f2a2c75 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 11 Nov 2008 19:45:50 +0000 Subject: Check in of initial validation and authorization work. This work is incomplete, as there is not yet any way of restricting who can update the design docs. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@713132 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_erl_driver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/couchdb/couch_erl_driver.c') diff --git a/src/couchdb/couch_erl_driver.c b/src/couchdb/couch_erl_driver.c index e3cbf4ab..18fabc2b 100644 --- a/src/couchdb/couch_erl_driver.c +++ b/src/couchdb/couch_erl_driver.c @@ -14,8 +14,8 @@ specific language governing permissions and limitations under the License. */ // This file is the C port driver for Erlang. It provides a low overhead -// means of calling into C code, however unlike the Fabric engine, coding -// errors in this module can crash the entire Erlang server. +// means of calling into C code, however coding errors in this module can +// crash the entire Erlang server. #ifdef DARWIN #define U_HIDE_DRAFT_API 1 @@ -56,10 +56,8 @@ static ErlDrvData couch_drv_start(ErlDrvPort port, char *buff) return ERL_DRV_ERROR_GENERAL; pData->port = port; - pData->coll = NULL; - pData->collNoCase = NULL; + pData->coll = ucol_open("", &status); - if (U_FAILURE(status)) { couch_drv_stop((ErlDrvData)pData); return ERL_DRV_ERROR_GENERAL; -- cgit v1.2.3