Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2014-03-20 15:57:57 +0400
committerKlaas Freitag <freitag@owncloud.com>2014-03-20 15:57:57 +0400
commitd2e19236943b3cf48d55af513103a2f0b97ba9fb (patch)
tree71d746423753d5da65088e4e0bd31d411bc36d90 /test
parenta5ede054d633e9b8cb890a5d2d90e1aba568574f (diff)
Fix compile warning.
Diffstat (limited to 'test')
-rw-r--r--test/testcsyncsqlite.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testcsyncsqlite.h b/test/testcsyncsqlite.h
index 7f44da3f4..f4ae9316b 100644
--- a/test/testcsyncsqlite.h
+++ b/test/testcsyncsqlite.h
@@ -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);
}