Fix db recovery callback error 46/165446/1
authorSeungha Son <seungha.son@samsung.com>
Fri, 29 Dec 2017 03:50:29 +0000 (12:50 +0900)
committerSeungha Son <seungha.son@samsung.com>
Fri, 29 Dec 2017 03:51:13 +0000 (12:51 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I300fb0520ff61847c3ece112ff1dc76fff39b5a3

src/notification_db.c

index 5f9a925..aed4104 100755 (executable)
@@ -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;