Skip to content

Commit d3c29b0

Browse files
committed
Cleanup extension init.
1 parent 274d336 commit d3c29b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sqlite3/assets/wasm/os_web.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
#include "bridge.h"
66
#include "sqlite3.h"
77

8-
extern int __rust_no_alloc_shim_is_unstable = 0;
98
extern int sqlite3_powersync_init(sqlite3 *db, char **pzErrMsg,
109
const sqlite3_api_routines *pApi);
1110

1211
int sqlite3_os_init(void) {
13-
sqlite3_auto_extension((void (*)(void)) & sqlite3_powersync_init);
12+
int rc = sqlite3_auto_extension((void (*)(void)) & sqlite3_powersync_init);
13+
if (rc != SQLITE_OK) {
14+
return rc;
15+
}
1416
return SQLITE_OK;
1517
}
1618

0 commit comments

Comments
 (0)