diff options
author | Seungha Son <seungha.son@samsung.com> | 2017-12-29 13:23:55 +0900 |
---|---|---|
committer | Seungha Son <seungha.son@samsung.com> | 2017-12-29 13:35:19 +0900 |
commit | 7b3d64d445e1e259215c83e8c35b2433cfa6b19b (patch) | |
tree | 04342a38fecca4b5ac82ce059dae0bf3db96ff36 | |
parent | b58c7f6122a10571578559abd35ac9411c7f9b6f (diff) | |
download | badge-7b3d64d445e1e259215c83e8c35b2433cfa6b19b.tar.gz badge-7b3d64d445e1e259215c83e8c35b2433cfa6b19b.tar.bz2 badge-7b3d64d445e1e259215c83e8c35b2433cfa6b19b.zip |
Fix db recovery
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I08f252ba21053bfeb70c0e61b457e8678614634c
-rwxr-xr-x | src/badge_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/badge_db.c b/src/badge_db.c index e05af86..a96ba4c 100755 --- a/src/badge_db.c +++ b/src/badge_db.c @@ -56,7 +56,7 @@ static bool is_db_corrupted = false; static int __check_integrity_cb(void *pid, int argc, char **argv, char **notUsed) { - if (!strcmp(argv[0], "ok")) { + if (strcmp(argv[0], "ok") != 0) { ERR("db integrity result : %s" , argv[0]); is_db_corrupted = true; return -1; |