couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1157693 - /couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c
Date Mon, 15 Aug 2011 01:09:44 GMT
Author: fdmanana
Date: Mon Aug 15 01:09:44 2011
New Revision: 1157693

URL: http://svn.apache.org/viewvc?rev=1157693&view=rev
Log:
Fix C pointer cast to the right type

This was making init:restart() crash the Erlang VM on a
Mac OS X Lion 64 bits machine.

References:
http://www.erlang.org/doc/man/erl_driver.html#driver_free
http://erlang.org/pipermail/erlang-bugs/2011-August/002549.html


Modified:
    couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c

Modified: couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c?rev=1157693&r1=1157692&r2=1157693&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c (original)
+++ couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c Mon Aug 15 01:09:44 2011
@@ -45,7 +45,7 @@ static void couch_drv_stop(ErlDrvData da
     if (pData->collNoCase) {
         ucol_close(pData->collNoCase);
     }
-    driver_free((char*)pData);
+    driver_free((void*)pData);
 }
 
 static ErlDrvData couch_drv_start(ErlDrvPort port, char *buff)



Mime
View raw message