File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2312,7 +2312,7 @@ static int db_concat_changeset(lua_State *L) {
2312
2312
int rc = sqlite3changegroup_new (& pGrp );
2313
2313
for (int i = 1 ; rc == SQLITE_OK && i <= n ; i ++ ) {
2314
2314
lua_rawgeti (L , 2 , i );
2315
- cset = gc ( strdup ( lua_tostring (L , -1 )) );
2315
+ cset = ( void * ) lua_tostring (L , -1 );
2316
2316
nset = lua_rawlen (L , -1 );
2317
2317
rc = sqlite3changegroup_add (pGrp , nset , cset );
2318
2318
lua_pop (L , 1 ); // pop the string
@@ -2328,7 +2328,7 @@ static int db_concat_changeset(lua_State *L) {
2328
2328
2329
2329
static int db_apply_changeset (lua_State * L ) {
2330
2330
sdb * db = lsqlite_checkdb (L , 1 );
2331
- char * cset = gc ( strdup ( luaL_checkstring (L , 2 )) );
2331
+ void * cset = ( void * ) luaL_checkstring (L , 2 );
2332
2332
int nset = lua_rawlen (L , 2 );
2333
2333
int top = lua_gettop (L );
2334
2334
int rc ;
You can’t perform that action at this time.
0 commit comments