mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Fix compile warning.
This commit is contained in:
parent
a5ede054d6
commit
d2e1923694
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ private slots:
|
|||
|
||||
memset(&_ctx, 0, sizeof(MY_CSYNC));
|
||||
|
||||
_ctx.statedb.file = "./test_journal.db";
|
||||
_ctx.statedb.file = c_strdup("./test_journal.db");
|
||||
|
||||
rc = csync_statedb_load((CSYNC*)(&_ctx), _ctx.statedb.file, &(_ctx.statedb.db));
|
||||
Q_ASSERT(rc == 0);
|
||||
|
@ -115,6 +115,7 @@ private slots:
|
|||
}
|
||||
|
||||
void cleanupTestCase() {
|
||||
SAFE_FREE(_ctx.statedb.file);
|
||||
csync_statedb_close((CSYNC*)(&_ctx), _written);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue