[Pkg-owncloud-commits] [owncloud-client] 181/333: Fix compile warning.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit d2e19236943b3cf48d55af513103a2f0b97ba9fb
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu Mar 20 12:57:57 2014 +0100
Fix compile warning.
---
test/testcsyncsqlite.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/testcsyncsqlite.h b/test/testcsyncsqlite.h
index 7f44da3..f4ae931 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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list