From: Seungha Son Date: Fri, 29 Dec 2017 03:50:29 +0000 (+0900) Subject: Fix db recovery callback error X-Git-Tag: submit/tizen/20171229.043030~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6d63f06a28af6c8618835fc47e841184a1aa031;p=platform%2Fcore%2Fapi%2Fnotification.git Fix db recovery callback error Signed-off-by: Seungha Son Change-Id: I300fb0520ff61847c3ece112ff1dc76fff39b5a3 --- diff --git a/src/notification_db.c b/src/notification_db.c index 5f9a925a..aed4104f 100755 --- a/src/notification_db.c +++ b/src/notification_db.c @@ -31,7 +31,9 @@ static bool is_db_corrupted = false; static int __check_integrity_cb(void *pid, int argc, char **argv, char **notUsed) { - if (!strcmp(argv[0], "ok")) { + char *check_str = "ok"; + + if (strncmp(argv[0], check_str, strlen(check_str))) { ERR("db integrity result : %s" , argv[0]); is_db_corrupted = true; return -1;