Skip to content

Commit 780ddc3

Browse files
committed
Update unit.c
1 parent b6c4b84 commit 780ddc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ bool do_test_algo_names (void) {
18881888

18891889
bool do_test_dbutils (void) {
18901890
// test in an in-memory database
1891+
void *data = NULL;
18911892
sqlite3 *db = NULL;
18921893
int rc = sqlite3_open(":memory:", &db);
18931894
if (rc != SQLITE_OK) goto finalize;
@@ -1897,7 +1898,7 @@ bool do_test_dbutils (void) {
18971898
cloudsync_set_payload_apply_callback(db, unittest_payload_apply_rls_callback);
18981899

18991900
// test context create and free
1900-
void *data = cloudsync_context_create(db);
1901+
data = cloudsync_context_create(db);
19011902
if (!data) return false;
19021903

19031904
const char *sql = "CREATE TABLE IF NOT EXISTS foo (name TEXT PRIMARY KEY NOT NULL, age INTEGER, note TEXT, stamp TEXT DEFAULT CURRENT_TIME);"

0 commit comments

Comments
 (0)