Skip to content

Commit 4b20296

Browse files
authored
Merge pull request #4 from sqliteai/replace-bzero-with-memset-for-android-ndk-compiler
2 parents 83b5700 + ee50338 commit 4b20296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sqlitejs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static globaljs_context *globaljs_init (sqlite3 *db) {
172172

173173
globaljs_context *js = (globaljs_context *)sqlite3_malloc(sizeof(globaljs_context));
174174
if (!js) return NULL;
175-
bzero(js, sizeof(globaljs_context));
175+
memset(js, 0, sizeof(globaljs_context));
176176

177177
rt = JS_NewRuntime();
178178
if (!rt) goto abort_init;
@@ -221,7 +221,7 @@ static functionjs_context *functionjs_init (globaljs_context *jsctx, const char
221221

222222
fctx = (functionjs_context *)sqlite3_malloc(sizeof(functionjs_context));
223223
if (!fctx) goto cleanup;
224-
bzero(fctx, sizeof(functionjs_context));
224+
memset(fctx, 0, sizeof(functionjs_context));
225225

226226
if (init_code) {
227227
init_code_copy = sqlite_strdup(init_code);

0 commit comments

Comments
 (0)